How to print the ref cursor returned from a multi-row Function.
Sandy, August 06, 2001 - 5:16 pm UTC
That was a good explanation. Tom if you could also demonstrate "How to print the ref cursor returned from a multi-row Oracle Function", assuming the function returns a ref-cursor type. I tried to print the output of "mce_output_qry_func" as given below.
SQLPLUS> variable x refcursor
SQLPLUS> begin x := mce_output_qry_func('CALENDAR',660,922,1); end;
It did'nt work. Would be of great help if you could get me that.
good explanation !
A reader, August 09, 2001 - 1:42 am UTC
Number of limit on PL/SQL table
A reader, September 23, 2002 - 12:15 pm UTC
Hi, Tom,
We got a problem on number of limit on Pl/SQL table.
Suppose we use DBMS_SQL package dynamically bind variables, decribe variable and get column values from any query. And further suppose we declare a pl/sql table like:
type vc_arr is table of varchar2(2000) index by
binary_integer;
g_cvalue vc_arr;
use g_cvalue to hold values of some of the columns,
if the query returns more than millions of records, do we have a limit number of records for g_cvalue variable to hold these many of records? If it does, what is the work around?
Thanks
September 23, 2002 - 1:24 pm UTC
You would NEVER want to fetch millions of rows.
You should fetch maybe 100 at a time, process them, fetch the next 100.
The APIs support this (array fetching of N records at a time), look at the define_array procedure.
varrays, nested tables, and pl/sql records, and pl/sql tables, and ref cursor
Bal Krishan Mittal, March 24, 2004 - 12:24 am UTC
dear sir , the answer you gave were very usefull for me even if i did not raised these questions but still while exploring your site the answers you gave were very usefull and reader friendly.
Thanks.
Bal Krishan Mittal.
The Energy and Resources Institute (TERI),
New Delhi.
balkrishan_mittal@hotmail.com
want to ask
bal krishan mittal, March 24, 2004 - 3:33 am UTC
sir i want to ask that how can i put my questions to you.
March 24, 2004 - 9:00 am UTC
when taking new questions, there is a button/link on the home page.
Thanks for the response
Archana, January 08, 2005 - 1:47 pm UTC
Got an idea about some of the DS in PL/SQL .
Thanks
Can we get only distinct value from a plsql record
A reader, November 20, 2006 - 11:29 am UTC
Dear Tom,
is it possible to get only distinct values from a given plsql record (or plsql table)
Thanks in advance
November 20, 2006 - 1:46 pm UTC
you can write any code you want :)
but think about it "a record", it is a bunch of attributes, there is no "distinct over attributes"