MySQL Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Mysql Tutorial
Introduction
How to Install
Database
Datatypes
Tables
INSERT
SELECT
UPDATE
DELETE
Operators
Functions
Ask Your Doubts
Feedback
 





Count MySQL Rows


Tutorials Mysql

Topic
How to count MySQL Table rows using select query?


Explanation

Count MySQL Rows :

    COUNT(*) counts the number of rows in a table.

The syntax is

SELECT COUNT(*) from tbl_name;

    Lets see the counting mysql rows using select statement.
mysql> select count(*) from student;
+----------+
| count(*) |
+----------+
|        5 |
+----------+
1 row in set (0.00 sec)
    This Example shows how to count MySQL Rows. The above query will list the number of rows in the student table.




A Note

MySQL is the most popular open source Relational database Management system (RDBMS). Being a open source anyone can use and change the software for their needs. Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this MySQL tutorial. This is a copyright content.


Other Links

web hosting