如何过滤此查询以显示“停用= 1”和“数量= 0”的任何项目?我不想排除停用值为1的所有项目。如果该项目有停产= 1的值和= 0。sql server中的条件语句2k5
select sku,producttitle,location,pt_type as type, vendor_name,
active,pricestatus, disc as discontinued,season,yourprice as
customerprice,costprice,quantity,stockvalue
from getskus
你肯定第一个是更快?如果可以通过简单的布尔转换来优化查询计划,我会感到惊讶...... – Heinzi 2010-05-11 17:01:28
对于说 – 2010-05-11 17:05:21