请教sybase 中的一个查询问题

[复制链接]
查看11 | 回复1 | 2009-10-9 08:28:00 | 显示全部楼层 |阅读模式
请教sybase 中如何查询一个表中的前几条记录

例如:我在sqlserver 中是这样的selecttop 10from tableid
where id>5 andnot in (select top from tableidwhere id >10order by
id desc) order by id

上面的语句如何改成sybase版的
回复

使用道具 举报

千问 | 2009-10-9 08:28:00 | 显示全部楼层
查询前 set rowcount 10
查询后取消设置 set rowcount 0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行