|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: MySQL syntax error for ON DUPLICATE KEY UPDATEby dvergin (Monsignor) |
| on Jul 20, 2008 at 01:48 UTC ( #698870=note: print w/ replies, xml ) | Need Help?? |
|
It seems that your SQL statement is failing because the placeholders in your "ON DUPLICATE KEY..." clause lack bind values when you invoke your SQL with "execute". I suspect you are passing only five values when you "execute". Your statement requires ten values, i.e. TWO copies of your variable set -- one after the other. HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||