orcle修改一个表的状态为另一个表中对应的状态

来源:互联网 发布:淘宝客服面试注意事项 编辑:程序博客网 时间:2024/05/21 11:00
UPDATE cm_serviceattr_instance a
SET a.attrcode = (SELECT b.attrcode
                       FROM pub_serviceattr_def b
                       where a.serviceattrid = b.serviceattrid)
where a.serviceattrid in(select b.serviceattrid from pub_serviceattr_def b);
阅读全文
0 0
原创粉丝点击