Don't ask to ask, just ask | |
PerlMonks |
Re: Inserting Select Array Material to MySqlby poj (Abbot) |
on Sep 11, 2015 at 07:44 UTC ( [id://1141645]=note: print w/replies, xml ) | Need Help?? |
Assuming uid is AUTO_INCREMENT try
LAST_INSERT_ID() will work for the first insert of the session because it will be 0, but subsequent inserts will fail as you try to enter another record with the same uid as the previous one. poj
In Section
Seekers of Perl Wisdom
|
|