数据库分页

mysql 分页  SELECT * FROM TABLE_NAME LIMIT 10, 20 ;

SQL Server 2005 2000

    SELECT TOP @pagesize * FROM TABLE_NAME WHERE id not in (SELECT TOP @pagesize*(@page-1) id  FROM TABLE_NAME ORDER BY id) ORDER BY id
 

posted on 2012-10-31 14:14  Eleven_Niu  阅读(136)  评论(0编辑  收藏  举报