[mysql] "INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"

If using insert ignore having a SHOW WARNINGS; statement at the end of your query set will show a table with all the warnings, including which IDs were the duplicates.