php - How to get number of rows without SELECTING all rows? -


How do I get the number of rows such as mysql_num_rows but without working for a mysql Resources because I do not know the future level of my webpage and it may take an hour to get the number of rows;)

Thanks!

SELECT COUNT (*) as tblName from num_rows; - and retrieve num_rows columns from that statement


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -