Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Counting number of rows while working with Oracleby ikegami (Patriarch) |
on Mar 18, 2008 at 08:16 UTC ( [id://674741]=note: print w/replies, xml ) | Need Help?? |
Oh, I missed that bit about returning at most one row! He can simply use
or
defined($row) will tell him if a row was returned. If the row only contains one field and it can't be NULL, then he could even use
defined($value) will tell him if a value was returned (again, assuming the value can't be NULL).
In Section
Seekers of Perl Wisdom
|
|