这是一个包含product_id
S和它们的功能表SQL选择记录
| product_id | feature_title | feature_value |
+------------+---------------+---------------+
| 6312 | warranty | 1 |
| 6312 | color | red |
| 2083 | warranty | 1 |
| 2083 | color | blue |
| 8686 | warranty | 0 |
| 8686 | color | red |
如何选择,只有这些细节记录:
warranty = 1
color = red
感谢。它在MySQL上工作吗? – AliN11
@ AliN11是[它会生效](http://www.sqlfiddle.com/#!9/63f30/4);)。 –
谢谢。它的工作,但我不明白这个查询 真是可怕的查询 – AliN11