我想取出数据库中前10条记录中的后5条,sql语句在写?

websterjt 2005-10-12 10:08:15
select top 5 from table where id not in(select top 5 from a) a
有人告诉我这样写,但是报错误
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'

ODBC driver does not support the requested properties.

/nnd/2.asp,行14


我用的是asp+access!
...全文
116 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
websterjt 2005-10-12
  • 打赏
  • 举报
回复
select Top 5 * From news Where newsid not in (select Top 5 newsid From news) order by newsid desc

我换了种方法,成功了,上面那种我死活读不出来!
holoon 2005-10-12
  • 打赏
  • 举报
回复
就是这个方法啊
an_wl 2005-10-12
  • 打赏
  • 举报
回复
支持……
intereye 2005-10-12
  • 打赏
  • 举报
回复
恩~~~不错~~~
itzhiren 2005-10-12
  • 打赏
  • 举报
回复
select top 5 from table a where id not in(select top 5 from a)

28,391

社区成员

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

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