用一条SQL语句如何取得数据库的第3,4,5条记录 ,并且延迟6秒钟执行

1select top 3 * from (select top 5 * from tabName order by u_id ) a
order by u_id desc

2select top M-N+1 * from (select top M * from tabName order by id asc ) t 
order by id desc

3select top M-N+1 * from (select top M * from tabName) t order by id desc

4select top 5 * from tabName where id  not in(select top 2 * from tabName)

5select top 5 from tabName where id  not in(select top 2 from tabName)

延迟6秒钟执行
waitfor delay  '00:00:06' 

posted @ 2006-03-13 14:20  jhtchina  阅读(772)  评论(0)    收藏  举报