Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Copy with PK problem in oracle 9i
You could do it in a PL/SQL block, if you do it record-by-record. Something
like this (this is not code!):
begin
<create a cursor to traverse your source records> while successfully retrieve source record
try insert source record into destination table exception // do nothing, just skip record end;
The bottom line is you ignore the exception while inserting records. Maybe you just want to ignore the primary key violations and pay attention to all the other types of exceptions. Received on Thu Feb 27 2003 - 14:32:12 CST