in reply to Re: Sqlite DBI $sth->rows
in thread Sqlite DBI $sth->rows
I fully agree. I had the same problems and scanned the web quite extensively. The SELECT COUNT method seems to work best (well, at least for me :) I'd prefer it over fetching all rows and counting them in a while loop, since that seems like a waste of resources to me (especially on really large data sets), and also over the $sth->rows, 'cause that doesn't seem to be reliable on SELECT queries.
--
B10m
Yes, that is one long line ;)
|
|---|