1
I cannot return the database data when I try to search for more products related to different categories. I am using the following query;
SELECT * FROM `app_product` WHERE app_category = 6 AND app_sub_category = 181
In that query i get all the data that is in the category 6 and subcategory 181. So far so good, I need a way to search a single query more data for example I want all data with the category 6 and subcategory 181 and 182 without having to create a query for each condition this way:
SELECT * FROM `app_product` WHERE app_category = 6 AND app_sub_category = 181
SELECT * FROM `app_product` WHERE app_category = 6 AND app_sub_category = 182
Is there any Mysql function I can use in this case?
In this condition I found it better and more abbreviated than (app_sub_category = 181 OR app_sub_category = 182)
– diogo Dsa