-
Hi
anyone have idea abt returing recordset from stored procedure as i use to do in sql server stored procedure.
sql server has capacity to return result set which is use in crystal report for drawing reports. as thr any way i do same, returing recordset from oracle 8i stored procdure and then use it in oracle report builder.
thanx in advance
-
I havent used report builder.
But oracle does have something to return reseult sets, it's called REF CURSOR. Look at docs to see how does it work
-
What you need is a collection either index-by table, nested table or a VARRAY depending on your record set. Create your collection using CREATE TYPE, define your record set variable, fetch it using BULK COLLECT and return it as that TYPE. Then you can pass that record set to another procedure, report etc.,