摘要:
1.对于SQL2000和SQL2005实用的分页方法一:SELECTTOP页大小*FROMtable1WHEREidNOTIN(SELECTTOP页大小*(页数-1) idFROMtable1ORDERBYid)ORDERBYid方法二:SELECTTOP页大小*FROMtable1WHEREid(SELECTISNULL(MAX(id),0) FROM (SELECTTOP页大小*(页数-1) idFROMtable1ORDERBYid )A)ORDERBYidhttp://www.cnblogs.com/squirrel_sc/archive/2004/10/02/48583.html分 阅读全文