2014年3月4日

Oracle中merge into的使用

摘要: 转自: http://blog.csdn.net/yuzhic/article/details/1896878http://blog.csdn.net/macle2010/article/details/5980965该命令使用一条语句从一个或者多个数据源中完成对表的更新和插入数据. ORACLE 9i 中,使用此命令必须同时指定UPDATE 和INSERT 关键词,ORACLE 10g 做了如下改动。1,insert 和update是可选的 2,UPDATE 和INSERT 后面可以跟WHERE 子句 3,在ON条件中可以使用常量来insert 所有的行到目标表中,不需要连接到源表和目标表 阅读全文

posted @ 2014-03-04 10:18 Step-BY-Step 阅读(152) 评论(0) 推荐(0) 编辑

MERGE

摘要: PurposeUse theMERGEstatement to select rows from one or more sources for update or insertion into a table or view. You can specify conditions to determine whether to update or insert into the target table or view.This statement is a convenient way to combine multiple operations. It lets you avoid mu 阅读全文

posted @ 2014-03-04 09:36 Step-BY-Step 阅读(302) 评论(0) 推荐(0) 编辑

导航