SQL从第几条数据起调用的select查询语句
SQL SERVER数据库,使用sql语句查询数据表中第几条起的数据,或查询数据表中第n条到第m条之间的数据。 示例: PS:content是要查询的数据表,id是content数据表中的主键字段。 1、查询数据表中第3条起的数据 select * from content where id not in (select top 3 id from content order by id desc) order by id desc 2、查询数据表中第4条至第10条数据 select top 7 * from content whe...