REPLACE SYNTAX
Posted: Fri Jul 20, 2007 4:46 pm
i was reading up on the "REPLACE SYNTAX" for MYSQL however there was a part stating
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).