但是selec count(*) from tablename where condition同样可以得到结果行数。为什么要用SQL_CALC_FOUND_ROWS了?
...全文
1036打赏收藏
select syntax parameter,SQL_CALC_FOUND_ROWS 的用法?
在做select查询时我们可以使用SQL_CALC_FOUND_ROWS,在查询后使用FOUND_ROWS()得到select的行数! 但是selec count(*) from tablename where condition同样可以得到结果行数。为什么要用SQL_CALC_FOUND_ROWS了?