Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Questions about INSERT with a subquery SELECT
Hi everyone,
My question is when i do an INSERT query having a subquery SELECT and one of inserted rows founds duplicate in the inserted table. Will Oracle just stop the query and return SQLCODE as duplicate record? or it will add in the new records and just bypass the duplicates?
Example:
INSERT INTO TAB1
SELECT COL1,
COL2, 'N', COL3 FROM TAB2
Any reply will be appreciated.
Thanks,
Tran.
Received on Fri Jun 07 2002 - 09:13:09 CDT