22,210
社区成员
发帖
与我相关
我的任务
分享
select a.zz,b.zz from tb t
join tab a on a.zz=t.col1
join tab b on b.zz=t.col2
select
b.codeNum as 移库单号,
convert(char(10),b.OptTime,120) as 移库日期,
f.StoreName as 移出仓库,
d.StoreName as 移入仓库,
a.UniCode as 零件号,
a.UniName as 名称 ,
e.[Size] as 型号,
a.Unit as 单位,
a.Quantity as 数量,
a.price as 单价,
a.amut as 金额
from JS_InListTbl a,JS_InStoTbl b,JS_SupplyTbl c,JS_StoreTbl d,JS_SysItemTbl e
join StoreTbl f on f.StoreName=b.Supplyid
where b.perftype=9 and b.StoreID=d.StoreID and a.unicode =e.UniCode and a.billnum =b.billnum
--try 估计你这查询有问题