논리연산자

복합

Between 연산

select * 
from `thelook_ecommerce.users`
where age between 20 and 30;
# 같음
# where age >= 20 and age <= 30;
select * 
from `thelook_ecommerce.users`
where created_at between '2021-01-01' and '2021-01-05';
# 같음
# where created_at >= '2021-01-01' 
# and created_at <= '2021-01-05';

IN 연산

select * from `thelook_ecommerce.users`
where country in ('United States', 'Brasil', 'Korea', 'Japan');
# 같음
# where country = 'United States' 
# or country = 'Brasil' 
# or country = 'Korea' 
# or country = 'Japan';

LIKE 연산

IS NULL