首页 > 数据库技术 > 详细

oracle 高级update

时间:2015-05-22 16:41:29      阅读:163      评论:0      收藏:0      [点我收藏+]

merge into table_c c using table_m m on(c.username = m.username) when matched then update set c.userId = m.id;   ------将table_m中的id字段设置到table_c中userId字段

spool /tmp/insert2.log; ----设置执行日志文件

spool off; ------关闭日志

oracle 高级update

原文:http://www.cnblogs.com/zhonghan/p/4522542.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!