简单问题,大家来讨论

zhlj2003 2003-04-23 11:24:40
我想取的表中某一特定纪录的下一条怎么做啊?
比如id=2的下一条纪录,id不是递增的
...全文
22 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhljsdly 2003-04-23
  • 打赏
  • 举报
回复
<%
set stu=server.createobject("adodb.recordset")
stu_sql="select stu_id from stu"
stu.open stu_sql,conn,1,3

for i=1 to stu.recordcount
if (stu("stu_id")<>stu_id) then stu.movenext end if
if (stu("stu_id")=stu_id) then
stu.movenext
stu_id=stu("stu_id")
end if
stu.movenext
next
%>
cqfeng 2003-04-23
  • 打赏
  • 举报
回复
rs.movenext

28,390

社区成员

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

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