Home » Database » DB » Bug #5673
Feature req.: Last inserted ID.
Details
| Request #5673 | Feature req.: Last inserted ID. |
|---|---|
| Submitted | 2005-10-12 20:15 UTC |
| From | vaclav dot sir at gmail dot com |
| Status | Closed |
| Package | DB |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-10-12 20:15 UTC] vaclav dot sir at gmail dot com
Description:
------------
A lot of database engines can return ID of last inserted row (mysql_insert_id(), mysqli_insert_id(), sqlite_last_insert_rowid()). It would be fine, if this layer would wrap these functions.
I don't like DB::nextId(), because it makes harder to work with the database directly (e.g. on the command line). Auto_increment is better.
[2005-10-12 20:22 UTC] vaclav dot sir at gmail dot com
see #1343