【发布时间】:2009-05-21 17:48:27
【问题描述】:
我有一些产品属性的表格:
table properties(
prop_id int,
product_id int
)
我的问题是:是否可以选择匹配的属性而不从结果中过滤它们?例如:
select property_id from properties WHERE property_id IN(1,3,5);
您只会得到匹配 1,3,5 的行。 我需要所有行,但需要哪些行符合我的条件的信息。 我不想使用'UNION'。
感谢您的帮助。
【问题讨论】: