Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
MySQL Tutorial
Introduction
Select Query
Database
Table
Table Join
Subquery
Insert Update Delete
Logic Operator
View
Data Types
Procedure Function
Cursor
Trigger
Date Time Functions
Comparison Functions Operators
Aggregate Functions
Cast Functions Operators
Control Flow Functions
Encryption Compression Functions
Information Functions
Math Numeric Functions
Miscellaneous Functions
String Functions
Regular Expressions
Data Dictionary
MySQL Utilities
Privilege
Count « Aggregate Functions « MySQL Tutorial
MySQL Tutorial
Aggregate Functions
Count
16.3.Count
16.3.1.
COUNT()
16.3.2.
COUNT(DISTINCT expr,[expr...]) (Returns a count of the number of different non-NULL values.)
16.3.3.
Return the total number of rows
16.3.4.
Count(*)
16.3.5.
COUNT(column name)
16.3.6.
Distinct count
16.3.7.
Use and IF() and COUNT() to give us a total as COUNT() ignores NULL values
16.3.8.
Using COUNT(*) in a table JOIN