(SQL) case when ~ then end 구문
case when 조건1 then 조건만족시 값1 when 조건2 then 조건만족시 값2 when 조건3 then 조건만족시 값3 … else 값 end 결과칼럼명 질문) 이름과 주소를 확인하십시오. (단, 주소를 한글로 변경 후 다시 검색) select uname, addr, case when addr=”Seoul” then ‘서울’ when addr=”Jeju” then ‘제주’ when addr=”Busan” then ‘부산’ when addr=”Suwon” then ‘수원’ end as juso … Read more