日期:2014-05-18 浏览次数:20343 次
select a.date,a.weight,b.FaPiaoNo as FaPiaoID from HuoWu a left join FaPiao b on a.FaPiaoID = b.FaPiaoID
------解决方案--------------------
select date,weight,FaPiaoID from HuoWu inner join 发票表 on 发票ID=HuoWu.发票ID or select date,weight, FaPiaoNo=(select FaPiaoNo from 发票表 where 发票ID=HuoWu.发票ID) from HuoWu