티스토리 뷰
728x90
value = a
(value != a OR value IS NULL)
SQL에서 `!=`의 결과물은, `NULL` 값을 포함하지 않는다.
따라서 a인것, a가 아닌것 (null 포함)을 구하려면 조건에 `IS NULL`을 꼭 명시해야한다!
[출처] https://stackoverflow.com/questions/5658457/not-equal-operator-on-null
728x90
'공부' 카테고리의 다른 글
[HDFS] Export & Import (0) | 2020.01.18 |
---|---|
[Python] Filter dict (0) | 2020.01.18 |
[SQL] `!=` Doesn't include NULL (0) | 2020.01.18 |
[Hive] Alter Table Column Type (0) | 2020.01.18 |
[Linux] Encoding 깨질때 (0) | 2020.01.18 |
[FTP] command (0) | 2019.12.22 |
댓글