When using:
INSERT ... ON DUPLICATE KEY UPDATE
Is there a callback to tell me how many rows and what changes were made?
I've searched everywhere but can't find any information on this at all.
When using:
INSERT ... ON DUPLICATE KEY UPDATE
Is there a callback to tell me how many rows and what changes were made?
I've searched everywhere but can't find any information on this at all.
In MySQL documentation saids:
With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, and 2 if an existing row is updated.