关键代码 ISNUll([BaseId],0) 格式 ISNUll(字段名,为NUll时要替换的值) 示例 select top(1) [name], ISNUll([age],0) from userInfo;