![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Inserting more than one entry into a MySql DBby screamingeagle (Curate) |
on Feb 01, 2002 at 19:15 UTC ( #142745=note: print w/replies, xml ) | Need Help?? |
I see that the Order number is staying the same for each iteration... if the order num column is the primary key in the table, then it is logical that only the first insert will work, and all the others will fail, because the primary key will have a UNIQUE constraint by default which will prevent it from having duplicate values. You need to generate a new value for the primary key for each insert statement
In Section
Seekers of Perl Wisdom
|
|