[thelist] counting returned rows in mySQL

Benjamin kalos at carolina.rr.com
Fri Apr 26 17:44:01 CDT 2002


A simple way to get the number of rows your query has returned (using Perl
& mySQL) is to use

my $count = $sth->rows;

Or just

print "$sth->rows";




More information about the thelist mailing list