Do you know where your variables are? | |
PerlMonks |
Re: Re: if (empty record set)by Grygonos (Chaplain) |
on Jun 26, 2003 at 15:10 UTC ( [id://269261]=note: print w/replies, xml ) | Need Help?? |
on many RDBMS the execute method will return the number of rows like so:
it varies from system to system .. but is another way to accomplish what you want edit: you could also run this query SELECT Count(yourPrimaryKeyHere) FROM yourTable if you're on a database that doesn't support execute's return value or $sth->rows
In Section
Seekers of Perl Wisdom
|
|