Documented PHP Bug #60770 -- Return value for 'INSERT ... ON DUPLICATE KEY UPDATE' queries. Note stolen from david_colter at me dot com.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325920 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2012-06-01 07:01:17 +00:00
parent 0d907fcbab
commit 8e4ba0e729

View file

@ -50,6 +50,11 @@
and then inserts the new record. This function returns the number of
deleted records plus the number of inserted records.
</para>
<para>
In the case of "INSERT ... ON DUPLICATE KEY UPDATE" queries, the
return value will be <literal>1</literal> if an insert was performed,
or <literal>2</literal> for an update of an existing row.
</para>
</refsect1>
<refsect1 role="examples">