Shrikant Gupta
Shrikant Gupta

Reputation: 127

How to get row count in Optimize way ? SQL_CALC_FOUND_ROWS is an option but is there any else?

This is one way as i know . please suggest any other ???

SELECT SQL_CALC_FOUND_ROWS * FROM Table;

SELECT FOUND_ROWS();

Upvotes: 0

Views: 49

Answers (1)

Stephan
Stephan

Reputation: 8090

You can use (it will be faster) :

SELECT COUNT(*) FROM Table

Upvotes: 3

Related Questions