일반함수란
숫자, 문자, 날짜등과 관련없이 쓰일 수 있는 함수
select name, dept, salary, ifnull(bouns, 0) from class.salaryselect name, dept, salary, if(salary>=300, ‘고액연봉자’, ‘일반연봉자’) from class.salaryselect name,
case when dept_cd='A' then '한국'
when dept_cd='B' then '중국'
when dept_cd='C' then '일본'
when dept_cd='D' then '미국'
when dept_cd='E' then '영국' end as dept_cd
,phone,address
from select_test;Last updated