is it saying that if you did a "print mysql_affected_rows()" the output will be 1 if it inserted while ($total_inserts - greater) if it was replaced?The affected-rows count makes it easy to determine whether REPLACE only added a row or whether it also replaced any rows: Check whether the count is 1 (added) or greater (replaced).
REPLACE SYNTAX
Moderator: General Moderators
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
REPLACE SYNTAX
i was reading up on the "REPLACE SYNTAX" for MYSQL however there was a part stating