首页 > 学院 > 开发设计 > 正文

把一张表里面的字段 更新到另外一张表里面

2019-11-09 13:30:18
字体:
来源:转载
供稿:网友
update T_IM_MoveIssueBillEntry t1

set t1.CFPRiceincrease=(select t2.CFPriceincrease from T_IM_StockTransferBillEntry t2 where t2.fid = t1.fsourceBillEntryID )

以上sql 报错 

update T_IM_MoveIssueBillEntry t1set    CFPriceincrease=(select t2.CFPriceincrease from T_IM_StockTransferBillEntry t2 where t2.fid = t1.FSourceBillEntryID )

区别就是 t1.CFPriceincrease  与 CFPriceincrease


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表