C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL COUNT() FunctionThe count() is a Math function of MySQL. This function is used to get the total count for a particular column of the table. Syntaxselect count(column_name) from table_name Parametercolumn_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. ReturnsThis function returns the count of an expression. Example 1Select count(id) from table1; Output: Example 2Select count(id) from table1; Output:
Next TopicMySQL Math
|