Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使我们在查询中添加 LIMIT,是否可以计算表中的所有行?
SELECT * FROM table LIMIT 0,10
例如,该表包含 100 行,即使该查询有 LIMIT,我如何才能通过一个查询获得“100”?
i think it's easy use your PHP code to make (0,10) as varialbes like ($a,$b)
(0,10)
($a,$b)
then you do: $count = $b-$a;
$count = $b-$a;