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.
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.