Working on Linux+Perl, I must perform around 100 UPDATEs in a
MySQL table. It works, but I get continuously this message:
DBD::mysql::st fetchrow_arrayref failed: fetch() without execute() at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Mysql/Statement.pm
line 14, <F> line 96.
Does anybody have any experience? Thank you very much.
These three are executed about 100 times ('while'):
-------//-------------
$sql_query3 = "UPDATE my_table SET id='$id_field', name='$name_field', text='$text_field' WHERE id='$i'";
$query3 = $DB->query($sql_query3);
@array3 = $query3->fetchrow;
#There are no more SQL commands here
---------//--------------
Thank you very much.
Contents of
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
auto DBD DBI.pm GD.pm Mysql perllocal.pod Win32
Bundle DBI GD HTML Mysql.pm qd.pl
What am I doing wrong?