当前位置: 代码迷 >> Sql Server >> case when 当中怎么判断一个字段是否为空
  详细解决方案

case when 当中怎么判断一个字段是否为空

热度:103   发布时间:2016-04-25 00:14:56.0
case when 当中如何判断一个字段是否为空
注意不是null 

是空字符串。
------解决方案--------------------
case when 字段名字='' or 字段名字 is null then 你的处理方法 else  你的处理方法 end

------解决方案--------------------
引用:
SQL code?



1

case when 字段名字='' or 字段名字 is null then 你的处理方法 else  你的处理方法 end
case when 字段名字='' then 你的处理方法 else  你的处理方法 end
都说了不用null咯
------解决方案--------------------
case when 字段='' 
  相关解决方案