How can I fetch the last row that was inserted using DBI (DBD::mysql)?
Code sample:
my $sth = $dbh->prepare(\'INSERT INTO a ( x, y, z ) VALUES ( ?
This is a property of the statement handle. You should be able to access the ID like that:
$sth->{mysql_insertid}