Is there a way to get the total number of rows in Zend db select like with using SQL_CALC_FOUND_ROWS in a regular mysql query. I haven't been able to find a similar functionality for this apart from running the same query without the limit clause.
Php – Getting total number of rows using SQL_CALC_FOUND_ROWS in Zend DB Table Select
MySQLPHPsqlzend-framework
Related Topic
- Sql – How to limit the number of rows returned by an Oracle query after ordering
- Mysql – How to do a regular expression replace in MySQL
- Mysql – Best way to test if a row exists in a MySQL table
- MySQL: Large VARCHAR vs. TEXT
- Sql – What are the options for storing hierarchical data in a relational database
- Mysql – Error related to only_full_group_by when executing a query in MySql
Best Answer
You could also try replacing all cols with COUNT(*) and running the query second time. It may actually be more efficient (even if it's counter-intuitive). This was the case for my app.
You can do it like this: