* Jeff Thies ([EMAIL PROTECTED]) [010420 11:35]:
> I believe there is an easy way to return the last value of an
> auto_increment field with DBI and MySQL. (I think this can be retrieved
> from the database handle.) What is it?
It's actually in the DBD::mysql docs:
$dbh->do( "insert into..." );
my $id = $dbh->{mysql_insertid};
HTH
Chris
--
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.
- last id with DBI and MySQL OT? Jeff Thies
- Chris Winters
