my $sth = $dbh->prepare($sql) $sth->{mysql_insertid};