note 116447 added to sqlite3.lastinsertrowid
| From: | alexofen at KEINSpamgmail dot com | Date: | Mon, 05 Jan 2015 10:08:31 +0000 |
| Subject: | note 116447 added to sqlite3.lastinsertrowid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201361@lists.php.net to get a copy of this message | ||
lastInsertRowID is relative to the database connection. Hence if there are two instances of a php
script (with distinct $db connections) there is no risk that the RowID of the one instance will
effect the result of the other instance.
I mention this point here as it was not clear from the documentation, at least not very clear to me
and hence I hope it might help others.
----
Server IP: 72.52.91.14
Probable Submitter: 95.119.252.70
----
Manual Page -- http://php.net/manual/en/sqlite3.lastinsertrowid.php
Edit -- https://master.php.net/note/edit/116447
Del: integrated -- https://master.php.net/note/delete/116447/integrated
Del: useless -- https://master.php.net/note/delete/116447/useless
Del: bad code -- https://master.php.net/note/delete/116447/bad+code
Del: spam -- https://master.php.net/note/delete/116447/spam
Del: non-english -- https://master.php.net/note/delete/116447/non-english
Del: in docs -- https://master.php.net/note/delete/116447/in+docs
Del: other reasons-- https://master.php.net/note/delete/116447
Reject -- https://master.php.net/note/reject/116447
Search -- https://master.php.net/manage/user-notes.php