By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

Getting the number of items in MySQL database table.

P: n/a
Is there an easier way to get the number of items in a database table than
selecting all the records in it and then running mysql_num_rows on the
result?

Hamilton
www.laughland.biz
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Spidah wrote:
Is there an easier way to get the number of items in a database table than
selecting all the records in it and then running mysql_num_rows on the
result?


Try a query like:

select count(*) from table_name;

Ruben.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.