mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
0d907fcbab
commit
8e4ba0e729
1 changed files with 5 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue