in reply to fetchrow_array loop in perl 5.10

Hi,

I can't say much about that issue. The only thing I can see from the code is the line

$insertSQL->finish;

which makes me wonder. Why do you have this statement in the loop body? As soon as you have more than one record to fetch your insertSQL statement handle isn't valid anymore.

At least I would expect to have this statement at the end of the script outside of the while loop when you've executed all insert statements.

Probably a point to start from.

Regards
McA

Replies are listed 'Best First'.
Re^2: fetchrow_array loop in perl 5.10
by Anonymous Monk on Sep 18, 2014 at 07:34 UTC
    thanks for the reply,I tried commenting it out, issue is still there (didn't loop thru all the records).