독서/데이터베이스
2021. 12. 29.
프로그래머스 SQL IS 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 NULL 처리하기 select animal_type, ifnull(name, 'No name') as name ,sex_upon_intake from ANIMAL_INS order by animal_id