|
|||||||||
|
txtSQL Documentation > Table Functions > last_insert_id
int last_insert_id ( $table[, $db, [, $column]] )
This function will retrieve the last ID generated by a primary key in a $table. If $column is specified, then txtSQL will return the last ID generated by that column instead of the primary key; if this $column is not auto_increment, then txtSQL will issue an error.
|
'Language Reference' User Functions Database Functions Data Manipulation Functions Table Functions showtables createtable droptable altertable describe table_count emptyCache table_exists last_insert_id Error Handling Functions SQL Syntax |
||||||||
| [ txtSQL Documentation powered by txtSQL | 5 SQL Queries ] | |||||||||