In my Perl script I use
while ($h = $sth->fetchrow_hashref) {
do this and that with $h->{colum1}, $h->{colum2} etc.
}
to print out the results of a SELECT statement.
My question is how can I know (get the number of) how many results (rows) are returned before I begin the "while" command?
Thank you!
while ($h = $sth->fetchrow_hashref) {
do this and that with $h->{colum1}, $h->{colum2} etc.
}
to print out the results of a SELECT statement.
My question is how can I know (get the number of) how many results (rows) are returned before I begin the "while" command?
Thank you!