SELECT * FROM CAR_RENTAL_COMPANY_CAR
SELECT * FROM CAR_RENTAL_COMPANY_CAR WHERE options LIKE '%시트%'
SELECT * FROM CAR_RENTAL_COMPANY_CAR WHERE options LIKE '%통풍시트%' OR options LIKE '%열선시트%' OR options LIKE '%가죽시트%'
SELECT * FROM CAR_RENTAL_COMPANY_CAR FROM CAR_RENTAL_COMPANY_CAR WHERE options REGEXP '시트'
SELECT * FROM CAR_RENTAL_COMPANY_CAR WHERE options LIKE '%시트%' GROUP BY car_type
SELECT car_type , count(car_id) AS CARS FROM CAR_RENTAL_COMPANY_CAR WHERE options LIKE '%시트%' GROUP BY car_type
SELECT car_type , count(car_id) AS CARS FROM CAR_RENTAL_COMPANY_CAR WHERE options LIKE '%시트%' GROUP BY car_type ORDER BY car_type ASC
※ options LIKE '%통풍시트%' OR '%열선시트%' OR '%가죽시트%' 로 출력했었음
=> '%통풍시트%' 만 적용되어 출력됨
컬렴명 LIKE '%들어갈 문구%' 는 무조건 같이 들어간다.
WHERE 컬럼명 LIKE '%A%' OR 컬럼명 LIKE '%B%' OR 컬럼명 LIKE '%C%' ...등등.....