22智能在线
新记
如何在sql语句中把为null的值替换成0
如题所述
举报该文章
其他看法
第1个回答 2016-11-14
select id,case when name is null then 0 when name='' then 1 else name end from a;
相似回答
大家正在搜
相关问题
如何在查询语句中把空值(null),输出为0?
sql如何把查询到的NULL替换成空值''
SQL怎么把null改成0
sql语句中 查询结果 把0 替换为 空,怎么弄?
sql server 如何改变计算结果的值 如null改变为...
SQL 语句 把一个值为0的字段改为空('null')
sql语句中如何把查询到null转为数字0
Mysql中查询一个表,把结果中的NULL替换成0,怎么写出...