oracle 

select nvl(字段名,0) from 表名;

sqlserver

select isnull(字段名,0) from 表名;

mysql

select ifnull(字段名,0) from 表名;

相关文章: