SQLite3::lastInsertRowID
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SQLite3::lastInsertRowID — Returns the row ID of the most recent INSERT into the database
Description
Returns the row ID of the most recent INSERT into the database.
Parameters
This function has no parameters.
Return Values
Returns the row ID of the most recent INSERT into the database.
If no successful INSERTs into rowid tables have ever occurred on this database connection,
then SQLite3::lastInsertRowID() returns 0.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
