摘要: 结构 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 阅读全文
posted @ 2022-12-06 10:40 KeepChasing 阅读(106) 评论(0) 推荐(0) 编辑
摘要: SqlServer2012增加的新分页方式 OFFSET/FETCH NEXT 语法 OFFSET=偏移,跳过 rows FETCH = 取 rows only 示例 越过 1 万条,取 50 条 SELECT * from User ORDER BY UserID OFFSET 100000 RO 阅读全文
posted @ 2022-12-06 10:24 KeepChasing 阅读(276) 评论(0) 推荐(0) 编辑