fetch from function returning a ref cursor to record

后端 未结 3 626
长发绾君心
长发绾君心 2021-01-19 18:30

I have a function in a package that returns a REF CURSOR to a RECORD. I am trying to call this function from a code block. The calling code looks like this:

         


        
3条回答
  •  孤城傲影
    2021-01-19 18:51

    The function returns a record_cursor, so I would expect a_record should also be a record_cursor. However, it is not clear why you are returning a ref cursor anyway - why can't the function return a record_name type instead?

提交回复
热议问题