The function you need is LAST_INSERT_ID().I think this is particular to MySQL. For Sybase and Oracle, also try
My projects have always had this statement in a transaction, but I'm not sure if it's needed.SELECT @@IDENTITY FROM table
In reply to Re: Re: How do I find what column $dbh-{'insert_id'} was inserted into?
by boo_radley
in thread How do I find what column $dbh-{'insert_id'} was inserted into?
by artful
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |