SQL 分页查询
分页查询,即查询前几行(或者特定的几行)
1.
mysql的分页:limit函数 select * from test limit m,n m为记录初始位置(从0开始,默认),n为要查询的记录数
2.
Sql server:top关键字 select top n from test n为查询的条数
3.
Oracle: row_num() 数 select * from (select t.*,row_num() over no from test )where no between 10 to
转载
Oracle
340
2014-03-12 23:34