티스토리 뷰
반응형
count(*) VS count(1)

- 차이가 없다.
count(*) VS count(컬럼)
- count(*) : null을 포함하여 모든 Row 수를 카운트한다.
- count(컬럼명) : null을 제외한 Row 수를 카운트한다.
Reference
- https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_count
- https://asktom.oracle.com/pls/apex/f?p=100:11:0::NO::P11_QUESTION_ID:1156159920245
반응형