2017-04-25 13 views

答えて

0

クエリ次使用することができます。 私はあなたが既に試みているものをあなたのテーブル名がtable1

select variant_id from (select * from table1 where 
product_id=1 and ((attribute_name='Size' and value='L') 
or (attribute_name='Color' and value='Green'))) as temp 
group by variant_id having count(*)>1 
+0

そんなにありがとうございます。それは魅力のように働く。あなたは私の一日を作った –

関連する問題