Javatpoint Logo
Javatpoint Logo

MySQL COUNT() Function

The count() is a Math function of MySQL. This function is used to get the total count for a particular column of the table.

Syntax

Parameter

column_name: It is the column name to get the count.

table_name: It is the name of the table in which column name is present.

Returns

This function returns the count of an expression.

Example 1

Output:

MySQL Math COUNT() Function MySQL Math COUNT() Function

Example 2

Output:

MySQL Math COUNT() Function MySQL Math COUNT() Function
Next TopicMySQL Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA