码迷,mamicode.com
首页 > 数据库 > 详细

ORACLE 更新关联多张表

时间:2016-01-17 12:11:27      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

UPDATE T_XMLC_BILL_HEAD_BAK T1
SET (T1.SENDRECEIVEFLAG,
T1.SENDRECEIVEOPERATOR,
T1.SENDRECEIVEDATE,
T1.DECLAREAPPLICANT,
T1.DECLAREDATE,
T1.DECLAREAPPROVEFLAG,
T1.DECLAREAPPROVEDATE)=(SELECT T2.SENDRECEIVEFLAG,
T2.SENDRECEIVEOPERATOR,
T2.SENDRECEIVEDATE,
T2.DECLAREAPPLICANT,
T2.DECLAREDATE,
T2.DECLAREAPPROVEFLAG,
T2.DECLAREAPPROVEDATE
FROM T_XMLC_BILL_HEAD_PRE T2 WHERE T2.OID=T1.OID AND T2.OID=2caf5b22-b1ea-44f5-8a9b-98727c7d4082
)

 

ORACLE 更新关联多张表

标签:

原文地址:http://www.cnblogs.com/ChineseMoonGod/p/5136993.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!