Solar_Sql_Adapter_MysqlReplicated::lastInsertId()

public int Solar_Sql_Adapter_MysqlReplicated::lastInsertId ( string $table = NULL , string $col = NULL )

Get the last auto-incremented insert ID from the database.

Parameters

  • (string) $table: The table name on which the auto-increment occurred.

  • (string) $col: The name of the auto-increment column.

Returns

  • (int) The last auto-increment ID value inserted to the database.

Description

Get the last auto-incremented insert ID from the database.



Local