note 56593 added to function.pdo-lastinsertid
| From: | yonman at nsa dot co dot il | Date: | Thu, 08 Sep 2005 12:25:03 +0000 |
| Subject: | note 56593 added to function.pdo-lastinsertid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94911@lists.php.net to get a copy of this message | ||
In response to davey at php dot net:
PGsql uses sequences to implement incrementing column values - you must input the relevant sequence
name (with schema name) into the method to receive anything other than the last OID. I believe this
is also true for Oracle, but I may be wrong.
----
Manual Page -- http://www.php.net/manual/en/function.pdo-lastinsertid.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56593
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56593&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56593&report=yes
Search -- http://master.php.net/manage/user-notes.php