Home » MySQL Math COUNT() Function

MySQL Math COUNT() Function

by Online Tutorials Library

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

You may also like