标签:oracle condition 技术分享 match cond 相同 val 代码 date
Oracle中,要实现相同的功能,要用到Merge into来实现(Oracle 9i引入的功能),其语法如下:
MERGE INTO table_name alias1 USING (table|view|sub_query) alias2 ON (join condition) WHEN MATCHED THEN UPDATE table_name SET col1 = col_val1, col2 = col_val2 WHEN NOT MATCHED THEN INSERT (column_list) VALUES (column_values);
标签:oracle condition 技术分享 match cond 相同 val 代码 date
原文地址:http://www.cnblogs.com/alisonGavin/p/7003763.html