Best Way to handle duplicate key exceptions

Поиск
Список
Период
Сортировка
От Peter Neu
Тема Best Way to handle duplicate key exceptions
Дата
Msg-id 002001c6b171$ba67e670$bcc8a8c0@PCMELZER
обсуждение исходный текст
Ответ на Re: Simple way to manage users with JDBC/Servlets?  (Roland Walter <rwa@mosaic-ag.com>)
Список pgsql-jdbc
Hello,

what is he best way to handle duplicate key exceptions? When I do bulk
import I don't want
the insert process to fail simply because somebody gave me an inconsistent
csv file.

Is there simple way to tell Postgres to simply insert everything that is
good and let me log the errors?

Cheers,
Pete





В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Roland Walter
Дата:
Сообщение: Re: Simple way to manage users with JDBC/Servlets?
Следующее
От: "Koth, Christian (DWBI)"
Дата:
Сообщение: Using ON_ERROR_ROLLBACK functionality in JDBC