콘텐츠로 이동

행 또는 NULL이 아닌 값의 개수를 반환합니다.

func.count()
func.count()
COUNT()
SELECT COUNT(*) FROM employees;
┌──────────┐
│ count(*) │
├──────────┤
│ 1000 │
└──────────┘
SELECT COUNT(DISTINCT department) FROM employees;
┌──────────────────────────────┐
│ count(distinct department) │
├──────────────────────────────┤
│ 5 │
└──────────────────────────────┘