if not rs.eof then什么意思啊?
来源:百度知道 编辑:UC知道 时间:2024/05/21 12:40:49
rs.open sql,conn
if not rs.eof then
session("isadm")="adm"
else
session("isadm")="user"
end if
这里面rs.eof是对数据库查询结果作如何判断?能否详细一些?
if not rs.eof then
session("isadm")="adm"
else
session("isadm")="user"
end if
这里面rs.eof是对数据库查询结果作如何判断?能否详细一些?
if not rs.eof then
就是如果记录指针没有到达最后的记录,
用session("isadm")来记录 adm
如果,记录指针到达最后的记录,则
用session("isadm")记录 user
一般情况下,执行rs.open sql.conn
是查询数据库中是否有符合该SQL 语句的纪录,如果记录存在那么 rs.eof=false,
如果不存在那么rs.eof=true;
if not rs.eof
就是如果记录集指针没有到达最后一条记录之前,指针继续下移
就是说如果当前记录不是数据库最尾端的记录(eof就是end of file)则...
上面程序的意思是如果表里有该用户,则把isadm的Session变量设为adm,否则(在这些否则的定义就是表里没有查到该用户,也就是if rs.eof then)就把isadm的Session变量设为user
eof就是End of file就是文件指针到达末尾也就是一楼所说的
这几天我也在做数据库,看过代码知道. if not rs eof then 是从数据库里面选择的表里从头到尾的查询要的字段数据.
if not rs.eof then什么意思啊?
if rs.eof then
if not(rs.bof and rs.eof) then
if not rs.eof and not rs.bof then 答的好一定会追加!
if rs.EOF and rs.BOF then
if rs.bof and rs.eof then
if not rshyk.eof then
关于这句If Not rs.Eof Then Content=rs(0)如何理解!
谁能详细解释asp中"if not rs.eof and not rs.bof then"怎么理解?
ASP代码:if rs.eof and rs.bof then