2024.08.12. 단일행함수 - 2. - 변환함수, 제어흐름함수, 시스템정보함수.
select last_name, ifnull(commission_pct, 'No Commission')-- (==)select last_name, if(commission_pct is null, 'No Commission', commission_pct)-- (==)select last_name, if(commission_pct is not null, commission_pct, 'No Commission')from employees; (1) 변환함수 - date_format(날짜, 형식) : 날짜를 형식에 맞게 출력함. select now(), date_format(now(), '%Y/%M/%d') as Now;select now(), date_format(now(), '%y_%M_%d %W %H:%..