CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Location
    PA
    Posts
    58

    First row of ref cursor

    I have something like this...

    mycursor REFCUR;

    OPEN mycursor FOR
    Select a, b,c from yada;

    I loop through the the cursor using fetch 1 time... I want to loop through the cursor a second time, however the cursor is pointing at the last row. Is there a way to reset it to the first row again without doing the query all over.

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: First row of ref cursor

    Hi..
    Depending on youe cursor type, you can use :
    Code:
    FETCH FIRST FROM REFCUR
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured