©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PHP 5 >= 5.3.0)
SQLite3::lastInsertRowID — Returns the row ID of the most recent INSERT into the database
Returns the row ID of the most recent INSERT into the database.
此函数没有参数。
Returns the row ID of the most recent INSERT into the database
[#1] alexofen at KEINSpamgmail dot com [2015-01-05 10:08:29]
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.