세 개의 카테고리 & 하위 카테고리가 있습니다. 카테고리 (모험, 회춘, 음식) 및 sub_category (공기, 풍선 등) MySQL 쿼리가 정확한 출력을 얻지 못합니다.
는 지금은select * from products where sub_category Like '%Air%' or
sub_category Like '%Land%' and category = 'adventure'
and type = 'experience' and status = 'active'
쿼리
아래로 발사하고 지금 문제는 또한 행 위치를 카테고리 = 회춘을 받고있다.select * from products where (sub_category Like '%Air%' or
sub_category Like '%Land%')and category = 'adventure'
and type = 'experience' and status = 'active'
"% ..."'는 인덱스를 사용할 수 없으므로 어떤 방법 으로든이를 피할 수 있다면 훨씬 더 좋습니다. – Strawberry