Oracle: Select From Record Datatype

后端 未结 6 1037

I have a function that returns a record datatype (2 fields: ID and Name). How can I get at the data from a select statement?

Specifically, I am trying using an Oracl

6条回答
  •  盖世英雄少女心
    2020-12-10 20:23

    Can you

    CREATE TYPE  AS TABLE OF  
    
    
    

    and use that directly in a SQL statement? I ask because I have a stored proc that I can not edit. The stored proc has an output variable that is record type that I have to reference in a SQL statement. I have already created a function to call the proc, but if I don't have to convert the record to type object that would be nice.

    I would later call it like:

    SELECT *
    FROM TABLE( CAST( () as ));
    
        

    提交回复
    热议问题