[Israel.pm] DBI - MySQL - last_insert_id doesn't work?

semuel semuel at semuel.co.il
Sat Mar 13 08:57:41 PST 2004


Hello There.

I'm working with mysql, and trying to get the last_insert_id right after I
inserted a row to a table.
But last_insert_id return undef.
I checked the result of the $dbh->do command (inside it the INSERT command
takes place) 
And it returns 1. In the database the row saw inserted.
Help?

Semuel.




More information about the Perl mailing list