| LAST_INSERT_ID ( ) | ใช้คืนค่า id ล่าสุด ที่มีการ insert ข้อมูล ซึ่ง id นั้นจะต้องเป็น field แบบ auto increment |
|---|
function:LAST_INSERT_ID()
content:ใช้คืนค่า id ล่าสุด ที่มีการ insert ข้อมูล ซึ่ง id นั้นจะต้องเป็น field แบบ auto increment
example:SELECT LAST_INSERT_ID()