I have a function that returns a refcursor for a given query.
I call the function like this. Although this is a simple query my actual query is more dynamic with other parameters for where clause.
select myfunction('select * from employees') as f from dual;
and it gives me the output
F
--------------------
CURSOR STATEMENT : 1
CURSOR STATEMENT : 1
EMPLOYEE_ID FIRST_NAME LAST_NAME EMAIL PHONE_NUMBER HIRE_DAT JOB_ID SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
----------- -------------------- ------------------------- ------------------------- -------------------- -------- ---------- ---------- -------------- ---------- -------------
198 Donald OConnell DOCONNEL 650.507.9833 20070621 SH_CLERK 2600 124 50
199 Douglas Grant DGRANT 650.507.9844 20080113 SH_CLERK 2600 124 50
200 Jennifer Whalen JWHALEN 515.123.4444 20030917 AD_ASST 4400 101 10
201 Michael Hartstein MHARTSTE 515.123.5555 20040217 MK_MAN 13000 100 20
202 Pat Fay PFAY 603.123.6666 20050817 MK_REP 6000 201 20
203 Susan Mavris SMAVRIS 515.123.7777 20020607 HR_REP 6500 101 40
204 Hermann Baer HBAER 515.123.8888 20020607 PR_REP 10000 101 70
I don't want these lines at the top and only want the cursor's output.
CURSOR STATEMENT : 1
How do I stop sqlplus or SQL developer from displaying it? what commands should I use?