數據庫查詢字段為null 時,返回0 oracle select nvl(字段名,0) from 表名; sqlserver select isnull(字段名,0) from 表名; mysql select ifnull( ...