merge [ hints ] into table-name-1 | view-name-1 [ alias-1 ]
using table-name-2 | view-name-2 | subquery [ alias-2 ]
on ( condition )
[ merge-update-clause ] [ merge-insert-clause ] [ error-logging-clause ];
using table-name-2 | view-name-2 | subquery [ alias-2 ]
on ( condition )
[ merge-update-clause ] [ merge-insert-clause ] [ error-logging-clause ];
create table table_dest (
id number primary key,
txt varchar2(20)
);
insert into table_dest values (1,'one');
insert into table_dest values (3,'three');
insert into table_dest values (5,'five');
commit;
create table table_source (
id number primary key,
txt varchar2(20)
);