`

多表关联更新update

 
阅读更多

 

参考:https://blog.csdn.net/liqing0013/article/details/96291116

 

t_outer_rel表中的OUTER_ID修改为t_outer_rel_qiaofang表中的uuid,where是关联条件:

update t_outer_rel rel, t_outer_rel_qiaofang bak
   set rel.OUTER_ID = bak.uuid
 where rel.ORG_ID=80
   and rel.TYPE = 1
   and rel.OUTER_ID = bak.id;

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics