Results 1 to 3 of 3

Thread: cursors

  1. #1
    Join Date
    Jun 2009
    Posts
    1

    Unanswered: cursors

    how to fetch selected rows without using scrollable cursors?

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    That would be the FETCH statement.

    Andy

  3. #3
    Join Date
    May 2009
    Posts
    508
    Provided Answers: 1
    mahesh666, what exactly do you want to do?

    If you have a query returning multiple rows, the cursor is needed.

    If you want to 'scan' through the cursor from top to bottom, then a standard cursor with Fetch (as Andy pointed out) works.

    However, if you want to go back and forth through the result set, then you need a scrollable cursor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •