--取出sql表中第到的记录(以自动增长ID为主键)
--从数据表中取出第n条到第m条的记录*/

create table t
(
id int,
name nvarchar(20)
)

declare @id int
select @id=1

while(@id<=100)
begin
insert t 
select @id,'Name'+cast(@id as nvarchar)

set @id=@id+1
end

select * from t

select top 10 * from 
(select top 40 * from Account where id not in 
(select top 30  id from Account )
)
 t
 
 drop table t

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-06-16
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案