If still get a "26 values when 25 are expected" error, try using $sth->execute( undef,@data )Um, no, don't do that. It will almost guarantee that the data will get placed in the wrong columns. Undef should be the first value in $dbh->do() because it is an attribute, not part of the data, but execute() doesn't currently take an attribute so it will become a value and shift all the other values to the right.
In reply to Re^2: DBI SQL adding array of values
by jZed
in thread DBI SQL adding array of values
by pmtolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |