Is there a way in MySQL to find out if the last REPLACE statement actually replaced any row or just performed a regular insert? LAST_INSERT_ID() doesn\'t seem t
LAST_INSERT_ID()
REPLACE returns the count of affected rows. This can be retrieved in SQL by ROW_COUNT().
ROW_COUNT()