in reply to Perl DBI adding some, not all, records to MySQL database
Some of your inserts may be failing because of meta characters in your field values. Try something more like this:
my $sth = $dbo->prepare("insert into table(field,field,field) values(? +,?,?)"); my $oth = $dbo->prepare("insert into table set field=?, field=?, field +=?"); # this second form is unique to mysql, but more readable... while( $something ) { $sth->execute( $value, $value, $value ) or die $sth->errstr; }
-Paul
|
|---|