多表查询的例子

2017-11-29  本文已影响0人  时光太忙

select a.supplierid,a.bill_number,a.time,b.pid,b.bar_code,b.estimate_num,b.actual_num,c.name,c.cost_price,d.supplier_name from ims_sibox_purchase as a left join

ims_sibox_purchase_list as b on a.id=b.pid left join

ims_sibox_goods_setting as c on b.bar_code=c.bar_code left join

ims_sibox_supplier as d on a.supplierid=d.id where a.id="9";

上一篇下一篇

猜你喜欢

热点阅读