When issuing a bulk insert statement, how can we ignore (supress) the exception thrown by DB and/or JDBC driver ?
Lets say I want to bulk insert some Users and I have an Id as a unique key
INSERT INTO users
(id,name,age,email,pass_code)
VALUES
(1,'Mark',18,'[email protected]',123),
(2,'Zak',18,'[email protected]',123),
(3,'Djigi',18,'[email protected]',123),
(1,'James Petkov',18,'[email protected]',123), --Duplicated by id ?
(4,'Kinkinikin',18,'[email protected]',123),
(5,'A bula bula ',18,'[email protected]',123),
(6,'Shakazulo',18,'[email protected]',123);
How to tell the engine MySQL/PostgreSQL to continue inserting the remaining records ?
Is this supported in SQL at all ?