SQL语句怎么判断一个char型数据是否为空? 找p3项目管理软件下载
记账软件版1楼: 数据库中的一个字符串,怎么知道它是有内容的,而不是(NULL或'' '')?
2楼: LEN(LTRIM(RTRIM(a+ ''''))) 如p3项目管理软件下载
3楼: isnull(field,'''')
4楼: IF 字符串<>''''
5楼: select * from abc where a is not null and a<>''''
6楼: select * from 表名 where a<>null and Rtrim(LTrim(a))<>''''
记账软件版7楼: 晕,你的注册时间也不短了吧?
8楼: 判断是否null可以用 is ,如 where field1 is null
判断空格或空串就与其它字符串一样了
是否空串还可以依据其长度是否为0,如 where len(field2)=0
9楼: 好