Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    64

    Unanswered: Usage of a Function returning a REFCURSOR

    I have a function that returns a REF CURSOR.

    Create function myfunction( var1 in nvarchar2)
    return rc1
    is
    ----
    ---
    end;
    I am trying to access this Function as follows

    Select * from TABLE(myfunction('name'))
    But its throwing some errors

    Please advice me how to call the above function in FROM CLAUSE

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >But its throwing some errors
    My car is throwing some errors.
    Please tell me how to make my care go.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Aug 2007
    Posts
    64
    Is this not the right place to post the above post

  4. #4
    Join Date
    Oct 2002
    Location
    Cape Town, South Africa
    Posts
    253

    Lightbulb

    [CODE]
    Select * from TABLE(myfunction('name'))
    [CODE]

    You need to use a pipelined function with TABLE. Google PIPELINED

    See http://www.vbforums.com/showthread.php?t=518849&highlight=oracle
    Look at post number 11... and apply the principle to your query

Posting Permissions

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