tags:

views:

101

answers:

3

Hello Stackoverflowers,

I'm a MySQL beginner. Does anybody know what the sql statment is to read how many recods their are in a MySql database? I don't want to display the records i just want to know how many records their are in my table.

Thanks

DJ

+4  A: 
SELECT COUNT(*) FROM fooTable;

will count the number of rows in the table.

See the reference manual.

Gregory Pakosz
A: 

Simply:

SELECT COUNT(*) FROM `tablename`
David Caunt
A: 
select count(*) from YourTable
astander