答案 0 :(得分:0)
select distinct *
from sub_property_value
INNER join products on products.product_id=sub_property_value.product_id
INNER join sub_property ON sub_property_value.sub_property_id=sub_property.sub_property_id
INNER join property ON sub_property.property_id=property.property_id
INNER join sub_category ON property.sub_category_id=sub_category.sub_cat_id
where sub_property_value.sub_property_value in ('android','5mega pixel') and sub_category.sub_cat_id in ('1') and sub_property.sub_property_id in ('9','11')
答案 1 :(得分:0)
首先,您需要为不同的函数指定列名称,如SELECT DISTINCT c1, c2, c3
,不能使用它。