note 123885 added to mysqli.insert-id
| From: | www dot wesley at gmail dot com | Date: | Sun, 26 May 2019 03:54:13 +0000 |
| Subject: | note 123885 added to mysqli.insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211121@lists.php.net to get a copy of this message | ||
When using "INSERT ... ON DUPLICATE KEY UPDATE
id =
LAST_INSERT_ID(id)", the AUTO_INCREMENT will increase in an InnoDB table, but not
in a MyISAM table.
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.34 (proxied: 177.206.224.4)
----
Manual Page -- http://php.net/manual/en/mysqli.insert-id.php
Edit -- https://master.php.net/note/edit/123885
Del: integrated -- https://master.php.net/note/delete/123885/integrated
Del: useless -- https://master.php.net/note/delete/123885/useless
Del: bad code -- https://master.php.net/note/delete/123885/bad+code
Del: spam -- https://master.php.net/note/delete/123885/spam
Del: non-english -- https://master.php.net/note/delete/123885/non-english
Del: in docs -- https://master.php.net/note/delete/123885/in+docs
Del: other reasons-- https://master.php.net/note/delete/123885
Reject -- https://master.php.net/note/reject/123885
Search -- https://master.php.net/manage/user-notes.php