I have a function that returns the data type of a record (2 fields: ID and name). How can I get data from a select statement?
In particular, I am trying to use an OracleCommand object trying to get an object in C # code. At first I tried ...
CALL FUNCTION_NAME() INTO :loRetVal
... but I get a data type error for any type that I use. I also tried ...
SELECT * FROM FUNCTION_NAME()
... and ...
SELECT * FROM TABLE ( FUNCTION_NAME() )
... to no avail. I guess I'm looking ...
SELECT * FROM RECORD ( FUNCTION_NAME() )
... which of course does not exist.
The only solution I could come up with was to wrap this function call with another function call, in which the external function returns a TABLE of records containing this single record. This, however, seems cumbersome, and I'm looking for a simpler method. Any help would be appreciated.
EDIT: Sorry, I also tried SELECT FUNCTION_NAME() FROM DUAL .
David beckman
source share