关键代码
ISNUll([BaseId],0)
格式
ISNUll(字段名,为NUll时要替换的值)
示例
select top(1) [name], ISNUll([age],0) from userInfo;
sql server 查询时,把为空NULL的字段值替换成指定的值
阅读 96
2022-06-17
ISNUll([BaseId],0)
ISNUll(字段名,为NUll时要替换的值)
select top(1) [name], ISNUll([age],0) from userInfo;
相关推荐
精彩评论(0)