标签:
SELECT CASE WHEN Column IS NOT NULL THEN ‘情况1‘ ELSE ‘情况2‘ END AS ‘列名‘ , FROM dbo.Table
Sql中使用Case when
原文地址:http://www.cnblogs.com/mtsl/p/4232502.html