I have a plsql procedure being called from VB.NET via ODAC. Procedure does a simple select:
cursor C_emp is select name, surname from employees;
Procedure must have an OUT parameter as REF CURSOR.
I know I can do a simple:
declare
L_cursor sys_refcursor;
begin
open L_cursor for select name, surname from employees;
...
end;
But I need to add a couple of columns to the OUT REF CURSOR, based on some logic from the select statement.
I thought about doing a loop and process one record at a time into a table of type array , then convert it into a REF CURSOR.
How can I do this? Any suggestion is much appreciated, many thanks in advance.
select
statement, and return it as usual. - Pavel Smirnov