IS NULL
μ°μ°μλ λ°μ΄ν° κ°μ΄ nullμΈ κ²½μ°λ₯Ό μ‘°ννκ³ μ ν λ μ¬μ©νλ€.
π‘ nullμ 0μ΄λ 곡백(space)κ³Όλ μμ°ν λ€λ¦! 0μ μ«μ κ°μ΄κ³ 곡백μ λ¬Έμ κ°μ΄λ―λ‘ λ€λ₯Έ μ νμ λ°μ΄ν° κ°μ΄λ€!
SELECT
"νλλͺ "
FROM
"ν μ΄λΈλͺ "
WHERE
"νλλͺ " IS NULL
SELECT
"νλλͺ "
FROM
"ν μ΄λΈλͺ "
WHERE
"νλλͺ " IS NOT NULL
SELECT ANIMAL_ID
FROM ANIMAL_INS
WHERE NAME IS NULL
ORDER BY ANIMAL_ID
SELECT ANIMAL_ID
FROM ANIMAL_INS
WHERE NAME IS NOT NULL
ORDER BY ANIMAL_ID ASC
SELECT ANIMAL_TYPE, IFNULL(NAME,"No name") AS NAME, SEX_UPON_INTAKE
FROM ANIMAL_INS
ORDER BY ANIMAL_ID
IFNULL
μ μ¬μ©ν΄ NULLμΌλλ₯Ό μ²λ¦¬ν΄μ€λ€