Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
int sasql_insert_id( sasql_conn $conn )
返回最后插入到 IDENTITY 列或 DEFAULT AUTOINCREMENT 列中的值,如果是最后插入到了不含 IDENTITY 或 DEFAULT AUTOINCREMENT 列的表中,则返回零。
提供 sasql_insert_id 函数是为了与 MySQL 数据库兼容。
$conn 由连接函数返回的连接资源。
由前一个 INSERT 语句为 AUTOINCREMENT 列生成的 ID,如果最后的插入对 AUTOINCREMENT 列没有影响,则返回零。如果 $conn 无效,则该函数会返回 FALSE。