より正確な問題に編集:
テーブルがあります: id、supplierCode、propertyCode、仕様。製品で検索を行っているときに、仕様に value1 や value2 のようなテキストがある製品を取得したいので、これらの製品を取得するには、次のようなクエリを使用したいと思います:
SELECT * FROM tbl WHERE (specification LIKE '%value1%' OR specification LIKE '%value2%') AND (those 2 got rows has the same supplierCode)
または、問題の反対側から: すべての SupplierCode を取得します
SupplierCodeの仕様列に LIKE '%
value1 %' AND
LIKE '%value2%'
が
あり
ます
。14 i7-15.3"
「i7」と「15.3"」を検索すると、仕様に i7 と 15.3" が含まれているため、001234 と 003214 を取得できます。