如我们要查找sno为文本类型的字段,在tb_Course 中,把sno为空的查询出来select * from tb_Course where ISNULL(datalength(sno),0)=0
不建议你为0,建议查询为空用
select * from tb_Course where ISNULL(sno,'')=''
select * from tb_Course where sno is null