how to returning a recordset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kquintero
    New Member
    • Apr 2008
    • 1

    how to returning a recordset

    hi people
    I'm translating lots of SQL stored procedures to Oracle procedures. In SQL I can create cursors as easy as:
    CREATE PROCEDURE myprocedure AS
    SELECT * FROM mytable1
    SELECT * FROM mytable2

    this procedure creates 2 cursors that later will be converted to recordsets in client machine with ADO objects. How can I do same thing in Oracle?

    TIA
    Karen
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Please find a related article here.

    Comment

    • Saii
      Recognized Expert New Member
      • Apr 2007
      • 145

      #3
      you have to explicitly write "cursor <CUR_NAME> is select * from <table>" in Oracle

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        You can also check for REF CURSORS.

        Comment

        Working...