MySQL Forums
Forum List  »  Perl

Re: $dbh->last_insert_id support
Posted by: Markus Krebs
Date: January 19, 2007 07:37AM

Hi,

just get the last inserted id by sql (variable).
its documented in the mysqld documentation library.

heres a shorcut:

my $in_id = $dbh->{ q{mysql_insertid}};

greetz,
Markus

Options: ReplyQuote


Subject
Written By
Posted
January 11, 2007 01:39PM
Re: $dbh->last_insert_id support
January 19, 2007 07:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.