SELECT * FROM feature_product WHERE(feature_ref_id = 11或feature_ref_id = 10)AND(feature_ref_id = 13或feature_ref_id = 12)
答案 0 :(得分:1)
feature_ref_id
不能同时为11和13 OR 10和12,因此没有数据。请改用IN
,例如:
SELECT *
FROM feature_product
WHERE feature_ref_id IN (10, 11, 12, 13);