求代码的解释,谢谢。。

huhacoca 2010-08-06 09:26:46
<%Call ConnectionDatabase
sql="select top 8 * from yx_art where cid=58 order by id desc"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof and not rs.bof
%>

如题
...全文
85 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
huhacoca 2010-08-06
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 lzp4881 的回复:]
<%Call ConnectionDatabase '调用ConnectionDatabase
sql="select top 8 * from yx_art where cid=58 order by id desc"'查询cid=58的最新8条记录
set rs=server.CreateObject("adodb.recordset")'定义记录集
rs.open sql,conn……
[/Quote]


谢谢~
lzp4881 2010-08-06
  • 打赏
  • 举报
回复
<%Call ConnectionDatabase '调用ConnectionDatabase
sql="select top 8 * from yx_art where cid=58 order by id desc"'查询cid=58的最新8条记录
set rs=server.CreateObject("adodb.recordset")'定义记录集
rs.open sql,conn,1,1'打开记录集
do while not rs.eof and not rs.bof'循环记录集
%>
gaozhen1990 2010-08-06
  • 打赏
  • 举报
回复
。。。这个就是连接数据库,然后读取数据库。。。。

do while not rs.eof and not rs.eof ' 当记录集不为空的时候,开始循环。。。

28,391

社区成员

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

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