f.sql 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. SELECT
  2. -- `PartLaid`.`bigBuyerId`,
  3. `PartLaid`.`bigId`,
  4. `PartLaid`.`brandId`,
  5. `PartLaid`.`buyAmount`,
  6. `PartLaid`.`buydetailId`,
  7. `PartLaid`.`contractId`,
  8. `PartLaid`.`id`,
  9. `PartLaid`.`locationId`,
  10. `PartLaid`.`note`,
  11. `PartLaid`.`orderNumber`,
  12. `PartLaid`.`partCode`,
  13. `PartLaid`.`partId`,
  14. `PartLaid`.`partName`,
  15. `PartLaid`.`pastureId`,
  16. `PartLaid`.`price`,
  17. `PartLaid`.`providerId`,
  18. `PartLaid`.`purpose`,
  19. `PartLaid`.`receivedAmount`,
  20. `PartLaid`.`reportery`,
  21. `PartLaid`.`specification`,
  22. `PartLaid`.`storageAmount`,
  23. `PartLaid`.`storageType`,
  24. `PartLaid`.`subscribePasture`,
  25. `PartLaid`.`subscribeProvider`,
  26. `PartLaid`.`sumPrice`,
  27. `PartLaid`.`unit`,
  28. `PartLaid`.`dflag`,
  29. `PartLaid`.`rowNumber`,
  30. `PartLaid`.`IsZeroStock`
  31. FROM
  32. PartLaid pl
  33. -- join bigpartlaid bpl on pl.bigid = bpl.id
  34. -- WHERE
  35. -- bpl.laidcode = 'RK01220826002'
  36. limit 10