1, 能嵌入delete语句
2, update, insert语句能嵌入where clause
3, update语句与insert语句,不必同时出现,是可选的(optional)
http://www.oracle-base.com/articles/10g/MergeEnhancements10g.php
MERGE Statement Enhancements in Oracle Database 10g
Oracle 10g includes a number of amendments to the MERGE statement making it more flexible.
Test Table
The following examples use the table defined below.
Optional Clauses
The MATCHED and NOT MATCHED clauses are now optional making all of the following examples valid.
Conditional Operations
Conditional inserts and updates are now possible by using a WHERE clause on these statements.
DELETE Clause
An optional DELETE WHERE clause can be used to clean up after a merge operation. Only those rows which match both the ON clause and the DELETE WHERE clause are deleted.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/82387/viewspace-1016320/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/82387/viewspace-1016320/
Oracle 10g 合并语句增强
本文介绍了 Oracle 10g 数据库中合并 (MERGE) 语句的重要增强特性,包括可选的 MATCHED 和 NOT MATCHED 子句、条件插入与更新操作及 DELETE 子句等,这些改进使 MERGE 语句更为灵活。

被折叠的 条评论
为什么被折叠?



