Connecting Tech Pros Worldwide Help | Site Map

How do you count the number of rows in a mysql database

Member
 
Join Date: Jun 2007
Posts: 34
#1: Jul 9 '07
How do you count the number of rows in a mysql database.

could anyone help
mwasif's Avatar
Moderator
 
Join Date: Jul 2006
Location: Pakistan
Posts: 719
#2: Jul 9 '07

re: How do you count the number of rows in a mysql database


Do you mean number of rows in a table? The syntax to count rows in a table is

Expand|Select|Wrap|Line Numbers
  1. SELECT COUNT(*) FROM table_name;
Member
 
Join Date: Jun 2007
Posts: 34
#3: Jul 23 '07

re: How do you count the number of rows in a mysql database


thanks you for your help
Reply