부분매칭
일부 글자를 사용해서 매칭 %(여러자 매칭) _(한글자매칭)
EX. COUP으로 시작하는 6자로 된 문자열 검색
select * from employees where LastName like “COUP_ _”;
exact 매칭
select * from employees where LastName=”SCOUPS”;
부분 (패턴) 매칭
EX. COUP으로 끝나는 문자열 검색
select * from employees where LastName like ”%COUP;
문제점.
insert into employees_new select * from employees;
create table employees_sample as select * from employees_new;
중복제거
임시테이블
select ifnull(salary,0) from salaries where emp_no=1;
select count(s.emp_no) from salaries as s where s.emp_no='10001';