想要实现的是 如果price为null的时候就为0,不为null就保持原值 解决方案:只用isnull就可以实现了 select isnull(price,0) price from dbo.store