igoryonya has asked for the wisdom of the Perl Monks concerning the following question:
I used to do something like this on MySQL:
Is there a way to determine the number of rows, found by select, if not with $sth->rows?
and it returned a number of rows, found by SELECT, but, no matter, what SELECT variation I use with SQLite, even when it returns the actual row data with $sth->fetchrow_hashref(), it always returns 0 (zero).$sth = $dbh->prepare("SELECT * FROM table"); if($sth->execute()){ printf "Executed Statement - returned (%s) rows\n", $sth->rows; }
Is there a way to determine the number of rows, found by select, if not with $sth->rows?
Back to
Seekers of Perl Wisdom