티스토리 뷰

포스팅에 앞서 내용이 틀릴 수 있습니다.
해당 부분 지적 감사히 받습니다.

문제를 보자.

 

오라클에서 조회할 때, ||말고 or을 사용하자.

 

|| 는 문자열을 합칠 때 사용한다.

 

쿼리

SELECT CAR_TYPE,    count(car_type) as CARS
from CAR_RENTAL_COMPANY_CAR
where options like '%통풍시트%' or options like '%열선시트%' or options like'%가죽시트%'
group by car_type
order by car_type
;

 

댓글