반응형
comm이 null인게
true면 0,
false면 comm 그대로
decode(대상, 조건, true이면, false이면)
-- 5. decode (조건문)
SELECT decode(comm, null, 0, comm) 보너스
FROM emp;
[출처]
https://cafe.naver.com/metacoding
메타 코딩 유튜브
https://www.youtube.com/c/%EB%A9%94%ED%83%80%EC%BD%94%EB%94%A9
반응형