UPDATE

pursuade 2015-12-07 10:13:00
update SEOrderEntry
set a.fauxcommitqy=b.fauxqty,
a.fcommitqty=b.fqty,
a.fseccommitqty=b.fsecqty
from seorderentry a,icstockbillentry b,ICStockBill c
where c.FBillNo like 'KK-%' and c.FInterID=b.finterid and c.FTranType=21 and
b.fsourcetrantype=81
and b.fsourceinterid=a.finterid and k.fentryid=a.fentryid
and a.FCommitQty=0 and a.FStockQty<>0 提示不能绑定多个组织,哪位大侠麻烦改下
...全文
180 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Yole 2015-12-07
  • 打赏
  • 举报
回复

update a--SEOrderEntry    这里改成a
set a.fauxcommitqy=b.fauxqty,
    a.fcommitqty=b.fqty,
    a.fseccommitqty=b.fsecqty
from seorderentry a,icstockbillentry b,ICStockBill c
where  c.FBillNo like 'KK-%' and  c.FInterID=b.finterid and c.FTranType=21 and 
b.fsourcetrantype=81
and b.fsourceinterid=a.finterid and k.fentryid=a.fentryid
and a.FCommitQty=0 and a.FStockQty<>0
yooq_csdn 2015-12-07
  • 打赏
  • 举报
回复
k.fentryid k 没有这个别名
中国风 2015-12-07
  • 打赏
  • 举报
回复
AND k.fentryid = a.fentryid 这里不正确
LongRui888 2015-12-07
  • 打赏
  • 举报
回复
update SEOrderEntry 
set fauxcommitqy=b.fauxqty,
    fcommitqty=b.fqty,
    fseccommitqty=b.fsecqty
from seorderentry a,icstockbillentry b,ICStockBill c
where  c.FBillNo like 'KK-%' and  c.FInterID=b.finterid and c.FTranType=21 and 
b.fsourcetrantype=81
and b.fsourceinterid=a.finterid and k.fentryid=a.fentryid
and a.FCommitQty=0 and a.FStockQty<>0

22,301

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧