• 자신의 따옴표 구분자를 지정합니다.
• 구분자를 임의로 선택합니다.
• 가독성 및 사용성이 증가합니다
select department_name || q'[Dept's Mgr ID :]' || manager_id
as "Department and Manager"
from departments;
select department_name || 'Dept''s Mgr ID :' || manager_id
as "Department and Manager"
from departments;
select employee_id, last_name, job_id
from employees
where job_id like 'SA_%';
➡ job_id가 SA로 시작되면서 3글자 이상인 업무 담당자를 출력하시오.
➡ 결과 : 101, 102, 103번 모두 출력됨!
select employee_id, last_name, job_id
from employees
where job_id like 'SA\_%' escape '\';
➡ jobid가 SA로 시작되는 업무 담당자를 출력하시오.
➡ 결과 : 101, 103번 출력됨!