在以下的神秘问题中,Im试图选择所有具有母体特征的产品。 I m 采用表面上的回报产品,其特征是1 OR 特征2...... 我应该用什么来代替本国?
SELECT *, f.name as feature, p.productcode as productcode, p.name as name
from product p
left join productfeatures pf on p.productcode = pf.productcode
left join features f on pf.featureid = f.id
where f.id in (1, 2, 3)
group by p.productcode