How can I get row count values in MySQL as @@ROWCOUNT does in mssql?
There is another way:
CREATE TEMPORARY TABLE `results` AS ( *** Your query without LIMIT *** );
Get the row count
SELECT COUNT(*) FROM `results`;
Get your subset
SELECT * FROM `results` LIMIT 5,10;
The temporary table exists only in the current session. I would still clean-up afterwards
DROP TEMPORARY TABLE `results`;