How to get the id of a just written row?
Posted: Sat Aug 02, 2003 8:54 pm
MySQL-database, field "id" is auto_increment. I am writing a record to the db and want to get the id.
I know I can do it with two mySQL-statements, one writing the record, the other reading the id, but is there something to obtain the id-field without querying again?
I know I can do it with two mySQL-statements, one writing the record, the other reading the id, but is there something to obtain the id-field without querying again?