asp 读取上一条记录和下一条记录!!在线等!!!!!!!!!!

pdmwxy 2008-10-17 04:11:54
id user password
1 a a
4 b b
10 c c
用程序读取到第二条记录之后。。如何读取到上一条记录的ID和下一条记录的ID,,,在线等!!!!!!!!!!
...全文
86 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
搞什么啊

天天有问问这个问题!!搜索都不想搜索一下
sy_binbin 2008-10-17
  • 打赏
  • 举报
回复
下一条:select top 1 * from table where id>当前ID order by id asc
上一条:select top 1 * from table where id <当前ID order by id desc
renjnet 2008-10-17
  • 打赏
  • 举报
回复
下一条:select * from table where id>当前ID order by id asc
上一条:select * from table where id<当前ID order by id desc

28,391

社区成员

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

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