日期:2014-05-18 浏览次数:20791 次
UPDATE U SET U.RK=1,U.SG=0,U.date_SG=null,U.createBy=dbo.GetCheckTab(createBy,0)+','+dbo.GetCheckTab(createBy,1) ,U.Remark=isnull(U.Remark,'') + '手工:上挂到入库(admin,2011-12-9 14:34:48)。' ,U.SG_ID=null,U.SG_Name=null FROM ( SELECT B.SG,B.RK,B.date_SG,B.createBy,B.Remark,C.SG_ID,C.SG_Name FROM LK_ItemCodeAndScanCode as A left join lK_StoreStatusReport as B on A.steelCode=B.steelCode left join LK_JobNumAndScanCode as C on C.steelCode = A.steelCode where B.status!=2 and A.ID in (79582) ) as U
如需要阅读该回复,请登录或注册CSDN!