Getting duplicate count when executing INSERT IGNORE via JDBC
Posted
by
Nickolay Komar
on Stack Overflow
See other posts from Stack Overflow
or by Nickolay Komar
Published on 2012-04-13T12:50:47Z
Indexed on
2012/11/15
11:03 UTC
Read the original article
Hit count: 183
Is it possible to get the duplicate count when executing MySQL "INSERT IGNORE" statement via JDBC?
For example, when I execute an INSERT IGNORE statement on the mysql command line, and there are duplicates I get something like
Query OK, 0 rows affected (0.02 sec) Records: 1 Duplicates: 1 Warnings: 0
Note where it says "Duplicates: 1", indicating that there were duplicates that were ignored.
Is it possible to get the same information when executing the query via JDBC?
Thanks.
© Stack Overflow or respective owner