The MERGE statement is a new syntax of Oracle9i, used to merge update and INSERT statements. The INSERT statement cannot be executed when UPDATE is performed on the matching connection conditions. This syntax only requires
The MERGE statement is a new syntax of Oracle9i, used to merge update and INSERT statements. The INSERT statement cannot be executed when UPDATE is performed on the matching connection conditions. This syntax only requires
The MERGE statement is a new syntax of Oracle9i, used to merge update and INSERT statements. The INSERT statement cannot be executed when UPDATE is performed on the matching connection conditions. This syntax only requires one full table scan to complete all the work, and the execution efficiency is higher than INSERT + UPDATE.
The following is an example:
Here is a slightly modified example:
,