in reply to Re: DBI and primary keys
in thread DBI and primary keys

Knowing which database you are using would help. Also available, at least with mySQL:

$dbh->{'mysql_insertid'};