码迷,mamicode.com
首页 > 数据库 > 详细

sql分页

时间:2018-08-13 19:41:58      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:select   pre   sql   order by   style   收藏   rom   class   top   

 1 A.
 2 
 3 --SELECT TOP 15 *  FROM Customer  
 4  --   WHERE CustomerID NOT IN(SELECT TOP (15*(2-1)) CustomerID FROM Customer 
 5  --   ORDER BY CustomerID)
 6     --   ORDER BY CustomerID
 7 
 8  
 9 
10 B.
11         --select top 15 * from Customer where CustomerID not in
12         --    (select top (15 *(10-1)) 
13         --       CustomerID from Customer 
14         --       order by CustomerID)
15         --       order by CustomerID
16 
17 收藏于 2011-02-09

 

sql分页

标签:select   pre   sql   order by   style   收藏   rom   class   top   

原文地址:https://www.cnblogs.com/dqh123/p/9470110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!