in reply to error in sql query while using DBI
If you run this script perhaps it will tell you more about what is failing.open(FILE, "<", "mahi.txt") or die "Unable to open mahi.txt: $!"; while (<FILE>) { chomp; print "Looking up PART_NUMBER: >$_<\n"; $sth->execute($_) or die "execute failed: ".$sth->errstr; my ($dup) = $sth->fetchrow_array(); print " Query returned: >$dup<\n"; if ($dup eq $_) { print " PART_NUMBER $_ is present\n"; } else { print " Failed to locate PART_NUMBER >$_<\n"; } }
|
|---|