CREATE TABLE tbl(
tbl_no NUMBER(10) UNIQUE
)
Table created.
CREATE TABLE tbl_tmp(
tbl_no NUMBER(10)
)
Table created.
INSERT INTO tbl_tmp VALUES(1)
1 row(s) inserted.
INSERT INTO tbl_tmp VALUES(1)
1 row(s) inserted.
INSERT INTO tbl_tmp VALUES(2)
1 row(s) inserted.
INSERT /*+ ignore_row_on_dupkey_index(tbl(tbl_no)) */
INTO tbl(
tbl_no
)
SELECT
tbl_no
FROM tbl_tmp
2 row(s) inserted.
SELECT * FROM tbl
TBL_NO | 1 | 2 |
---|