写出一条SQL语句:取出表A中第31~40条记录(SQL Server,以自动增长的ID作为主键):
注意:ID可能不是连续的。
select top 10 * from A where id not in (select top 30 id from A)
写出一条SQL语句:取出表A中第31~40条记录(SQL Server,以自动增长的ID作为主键):
注意:ID可能不是连续的。
select top 10 * from A where id not in (select top 30 id from A)