The DBI documentation states in ->execute for SELECT statements:
The execute method does not return the number of rows that will be returned by the query
So you will have to run a second query to fetch the number of returned rows, or fetch all rows to get their number.
In reply to Re: SQLite: how to get a number of rows from SELECT query
by Corion
in thread SQLite: how to get a number of rows from SELECT query
by igoryonya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |