Welcome to the Monastery | |
PerlMonks |
DBI-do return valueby tune (Curate) |
on Nov 29, 2001 at 03:16 UTC ( [id://128234]=perlquestion: print w/replies, xml ) | Need Help?? |
tune has asked for the wisdom of the Perl Monks concerning the following question:
Hi every good monks in PerlGod!
I had some working with DBI, where I wanted to know how many rows the statement deleted. I needed to use LIMIT, because the table is huge, and running the statement without limit, would lock the table up for several minutes, which would cause me looking for a new job and a lot of money loss for my company :-) So my script checks if $nr equals with the predefined row limit, which is 1500. If it is less it means that was the last portion, and exits. First time it went well, but I wanted it to work from crontab, and when the case was occured the statement did not delete any records since there was no old records, so it (could) returned 0. However it returned the string "0E0". What does it mean? I need a zero there! :) Could anybody explain it to me? Thanks. --
Back to
Seekers of Perl Wisdom
|
|