创建环境: create table pagetest ( id ,) not null, col01 int null, col02 ) null, col03 datetime null ) --100万记录集(大约耗时5min) declare @i int ) begin ) ),getdate() end 几种分页方式比较: --写法1,not in/top --每页50条,取第2015页数据 declare @begin_date datetime declare @end_date…