I\'m doing an INSERT ... ON DUPLICATE KEY UPDATE for a PRIMARY KEY in the following table:
INSERT ... ON DUPLICATE KEY UPDATE
PRIMARY KEY
DESCRIBE users_interests;
From the manual:
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.