今天有人问这个问题,还好帮着解决了,现在总结一下,也许对大家有用。。。。。。。。。
Oracle查询users表从m行到n行的记录
SELECT * FROM users WHERE ROWNUM<=N
MINUS
SELECT * FROM users WHERE ROWNUM<=M;
================================
Mysql查询users表中从m行到n行的记录
select * from users limit m,n;
===============================
Sql2000查询users表前n行记录
select top n * from users ;
查询users表从m行到n行的记录
select * from users where userId between m and n;