SQLite3
PHP 手册

SQLite3::lastInsertRowID

(PHP 5 >= 5.3.0)

SQLite3::lastInsertRowIDReturns the row ID of the most recent INSERT into the database

说明

public int SQLite3::lastInsertRowID ( void )

Returns the row ID of the most recent INSERT into the database.

参数

This function has no parameters.

返回值

Returns the row ID of the most recent INSERT into the database


SQLite3
PHP 手册