查询第n条到第M条记录的语名怎么写

来源:百度知道 编辑:UC知道 时间:2024/06/24 14:38:00
数据库有100条记录
我想读取第1到第30条
第31到第60条
这样的SQL语句怎么写?
ACCESS数据库

1.select top 30 * from table
2.select top 29 * from table where id not in (select top 40 * from table order by id desc) order by id desc

select top 30 * from tb;

下面这个领会思路啊 写的好像不对
select top 60 * from tb where key not exist in( select top 30 key from tb)

Select top 31 * from (select top 60 * from tablename order by id asc) order by asc

"select * from xxx order by * desc,* desc limit 30,30"//---如果你表中第一条初始id为1的话,从第30条后(即31开始)读出后面30条(即读到60)