Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Determining if a DBI SELECT comes back emptyby iburrell (Chaplain) |
on Dec 05, 2003 at 21:46 UTC ( [id://312661]=note: print w/replies, xml ) | Need Help?? |
If you just need to know if there are any results but don't need to fetch them, use SELECT COUNT(*). If you need to both read any results and do something if nothing was read, then you can use a flag to signal when you read anything:
In Section
Seekers of Perl Wisdom
|
|