- oracle
select nvl(字段名,0) from 表名;
- sqlserver
select isnull(字段名,0) from 表名;
- mysql
select ifnull(字段名,0) from 表名;
coalesce(sum(count),0) count,
coalesce(tm.integral_val,0) integral_val
select nvl(字段名,0) from 表名;
select isnull(字段名,0) from 表名;
select ifnull(字段名,0) from 表名;
coalesce(sum(count),0) count,
coalesce(tm.integral_val,0) integral_val