摘要:
结构 DECLARE Emp_Cursor CURSOR FOR SELECT EmpID, EmpName FROM Employee OPEN Emp_Cursor FETCH NEXT FROM Emp_Cursor WHILE @@FETCH_STATUS = 0 BEGIN --DO SO 阅读全文
摘要:
SqlServer2012增加的新分页方式 OFFSET/FETCH NEXT 语法 OFFSET=偏移,跳过 rows FETCH = 取 rows only 示例 越过 1 万条,取 50 条 SELECT * from User ORDER BY UserID OFFSET 100000 RO 阅读全文