DECLARE authors_cursor SCROLL CURSOR FOR
SELECT au_lname, au_fname FROM authors
ORDER BY au_lname, au_fname
OPEN authors_cursor

-- Fetch the second row in the cursor. --绝对位置
FETCH ABSOLUTE 2 FROM authors_cursor

-- Fetch the row that is three rows after the current row. --相对位置
FETCH RELATIVE 3 FROM authors_cursor

此例子是pubs 里的
将其换入你的数据库就行了

相关文章:

  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2021-05-26
  • 2021-09-17
  • 2021-09-13
  • 2021-10-21
  • 2021-10-19
相关资源
相似解决方案