📜  sql count * vs count 1 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.639000             🧑  作者: Mango

代码示例1
COUNT(*) gives the total number of records in the table including null values.

COUNT(1) gives the total number of records in the table including null values.

COUNT(column_name) only considers rows where the column contains a non-NULL value.