I want to fetch only 20 rows from a database table using one condition
for example :
select * from orders where price > 10000 limit 0,20
Above query will fetch only 20 rows. Is there any way i can get how many rows it can fetch with same condition in WHERE clause when limit 0,20 is not used?. I have to do it in one single query.
Please guide me.
Thanks..
To quote the MySQL docs: