good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
How do I find the value MYSQL assigned to an AUTO_INCREMENT ID (int) Field?by Anonymous Monk |
on Jun 19, 2000 at 04:13 UTC ( [id://18749]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the DBI to INSERT into a MYSQL database. There is an ID row which is a Primary Key field which has the AUTO_INCREMENT property. After doing an INSERT statement, how can I find out the value assigned to the ID for the new entry? I'd like to avoid having to do a SELECT statment, and thus access MYSQL again, for this information. thanks benji
Back to
Seekers of Perl Wisdom
|
|