Say I have a table, 'customers'
c_id INTEGER UNSIGNED AUTO_INCREMENT,
c_name VARCHAR(225),
c_phone VARCHAR(50),
Now I'm inserting a new item using the INSERT command, is it possible to within that same call get the c_id (last index) of the newly inserted row?
I know this is possible because I've done it before but I can't for the life of me remember how.
Thanks!
Luc L.
c_id INTEGER UNSIGNED AUTO_INCREMENT,
c_name VARCHAR(225),
c_phone VARCHAR(50),
Now I'm inserting a new item using the INSERT command, is it possible to within that same call get the c_id (last index) of the newly inserted row?
I know this is possible because I've done it before but I can't for the life of me remember how.
Thanks!
Luc L.