如何判断某一条记录中的某一个字段为空?

hcvo2 2004-06-17 08:15:29
如何判断某一条记录中的某一个字段为空?

例如我要判断13条记录中的哪几条记录的字段b是空值这条语句该怎么写?

我用了如下办法都说错误!

1. if not(isempty(rs("a"))) then response.write rs("a")
2. if rs("a") is empty then response.write rs("a")
3. if rs("a") is null then response.write rs("a")

请问这条语句该怎么写?
...全文
58 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yslcuk 2004-06-17
  • 打赏
  • 举报
回复
最好用isnull函数
Tal 2004-06-17
  • 打赏
  • 举报
回复
if rs("a") & "" = "" then response.write "没有值"
andraw2002 2004-06-17
  • 打赏
  • 举报
回复
试试:
if IsEmpty(rs("a")) or rs("a")="" then response.write "没有值"
sinusoid 2004-06-17
  • 打赏
  • 举报
回复
if rs("a")<>""then response.write rs("a")

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧