int insert_id()
Fetch the identity of the last insert (if available).
This performs the query "SELECT @@identity AS insert_id".
"SELECT @@identity AS insert_id"
Returns the identity of the last insert as an integer if available. Otherwise returns 0 (zero).
0