Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> pl/sql dup_val_on_index

pl/sql dup_val_on_index

From: nugster <doug.fulton_at_gmail.com>
Date: 6 Dec 2005 04:05:16 -0800
Message-ID: <1133870716.243962.219780@g43g2000cwa.googlegroups.com>


i have a pl/sql statement

that inserts into a table, the select brings back about 1000 rows, but the table already has 900 of the rows and a unique constraint on it.

i want the pl/sql to disregard any row that is already there but insert the ones that arent.

any ideas?

begin

insert into select ...

exception when dup_val_on_index
null;

end; Received on Tue Dec 06 2005 - 06:05:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US