INITCAP # 첫번째만 대문자로 변경
LOWER # 모두 소문자로 변경
UPPER # 모두 대문자로 변경
Bash
복사
INITCAP
select employee_id, INITCAP(last_name)
from employees;
# last_name의 첫글자만 대문자로 바꾸고 출력
Bash
복사
select employee_id, last_name
from employees
where INITCAP(last_name) = 'king';
# last_name의 첫글자를 모두
Bash
복사
LOWER
select employee_id, LOWER(last_name)
from employees;
# last_name 글자를 모두 소문자로 변경
Bash
복사
select last_name as ENAME, salary as SAL from employees where lower(last_name) = 'king';
# 대문자든 소문자든 쿼리가 되게 설정
Bash
복사
UPPER
select employee_id, UPPER(last_name)
from employees;
# last_name 글자를 모두 대문자로 변경
Bash
복사
