|
Previous Page |
Solar_Sql_Adapter_Pgsql |
Next Page |
lastInsertId()
public
int
lastInsertId (
string $table default NULL,
string $col default 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.
Postgres SERIAL and BIGSERIAL types create sequences named in this
fashion: {$table}_{$col}_seq.
http://www.postgresql.org/docs/7.4/interactive/datatype.html#DATATYPE-SERIAL
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _checkIdentifier()
- _createSequence()
- _dropIndex()
- _dropSequence()
- _dsn()
- _exception()
- _fetchTableCols()
- _fetchTableList()
- _getCacheKey()
- _getDefault()
- _getTypeSizeScope()
- _modAutoincPrimary()
- _modIndexName()
- _modSelect()
- _modSequenceName()
- _nextSequence()
- _postConnect()
- _select()
- _sqlColdef()
- _sqlCreateTable()
- _sqlSelect()
- addColumn()
- apiVersion()
- begin()
- commit()
- connect()
- createIndex()
- createSequence()
- createTable()
- delete()
- disconnect()
- dropColumn()
- dropIndex()
- dropSequence()
- dropTable()
- dump()
- fetchAll()
- fetchAssoc()
- fetchCol()
- fetchOne()
- fetchPairs()
- fetchPdo()
- fetchSql()
- fetchTableCols()
- fetchTableList()
- fetchValue()
- getPdo()
- getProfile()
- insert()
- lastInsertId()
- locale()
- nextSequence()
- query()
- quote()
- quoteInto()
- quoteMulti()
- rollback()
- setProfiling()
- update()