in reply to DBI Insert Unique Customer ID
Here is an easy way to get the newly created/incremented key using DBI, if you are working with an autoincremented field. Ater your insert, do this:select max(CustomerNumber + 1) from CustomerList
my $customer_number = $dbh->{'mysql_insertid'};
|
|---|