SELECT TOP 10 * FROM STUINFO WHERE STUNO NOT IN(SELECT TOP (10*(当前显示页-1)) STUNO FROM STUINFO ORDER BY STUNO)
SELECT * FROM (SELECT *,ROW_NUMBER() OVER(ORDER BY STUNO) CID FROM STUINFO) A WHERE CID BETWEEN 1 AND 10
SELECT TOP 10 * FROM STUINFO WHERE STUNO NOT IN(SELECT TOP (10*(当前显示页-1)) STUNO FROM STUINFO ORDER BY STUNO)
SELECT * FROM (SELECT *,ROW_NUMBER() OVER(ORDER BY STUNO) CID FROM STUINFO) A WHERE CID BETWEEN 1 AND 10
评论 (0)