Get the App
SLTechnology News&Howtos  ›  Database  › 

MySQL gets the last id last_insert_id () function of the database

Shulou Source: shulou.com Published: 2022-06-01 14:07:14 10月01日 Update

MySQL gets the last id of the database last_insert_id() function, use MySQL LAST_INSERT_ID function to get the value of the last insert ID generated by MySQL. 1, the use of the function mysql> SELECT LAST_INSERT_ID() as lastID; LAST_INSERT_ID function to get the sequence number of the last row inserted into the table. Article from: www.huthon.cn/

Tags: Function data database line sequence serial number article generation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Microsoft MySQL Shulou Tech Info