查询结果为空时,怎么补零我有一个查询,当结果为空的时候,如何设为0 谢谢[解决办法]select nz(字段名,0) from 表名 --或 select iif(isnull(字段名),0,字段名) from 表名