Might not understand the problem but an auto_increment typically means that you don't need to know the ID for the next insert. You can skip that column (if you have a list of the others) or enter null or even 0.
If you need to know the ID after an insert, use my $last_id = $dbh->{'mysql_insertid'};. This can useful to insert associated data into another table.
In reply to Re: How to find the highest number in a mysql table
by igelkott
in thread How to find the highest number in a mysql table
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |