Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Merge Problem
"mike" <hillmw_at_charter.net> a écrit dans le message de news:1111681674.420996.140480_at_z14g2000cwz.googlegroups.com...
PL/SQL. If id is unique (ex. PK):
begin
Insert into mytable (id, role ) values ( '111111','Super' );
exception when dup_val_on_index then
UPDATE mytable SET role = 'Super' where id='111111';
end;
/
Regards
Michel Cadot
Received on Thu Mar 24 2005 - 10:43:41 CST
![]() |
![]() |