note 14600 added to function.mysql-insert-id.php
| From: | xochotorena at php2 dot chek dot com | Date: | Mon, 06 Aug 2001 07:02:26 +0000 |
| Subject: | note 14600 added to function.mysql-insert-id.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16361@lists.php.net to get a copy of this message | ||
From mysql's manual:
"The last ID that was generated is maintained in the server on a per-connection
basis. It will not be changed by another client. It will not even be changed if
you update another AUTO_INCREMENT column with a non-magic value (that is,
a value that is not NULL and not 0)."
As each thread is using it's own connection there is no need to lock the table.
http://www.php.net/manual/en/function.mysql-insert-id.php