Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Inserting records in a cursor
Hi, maybe this is a stupid question, but I didn't it before, I want to
create a cursor load data, and return in in a funciton
something like
If you can please, thank you.
CREATE OR REPLACE
TYPE ctb.tyo_cco_imputacion AS OBJECT
(
nTotal NUMBER,
cCCO1 VARCHAR2(9),
cCCO2 VARCHAR2(9),
cCCO3 VARCHAR2(9),
cCCO4 VARCHAR2(9),
cCCO5 VARCHAR2(9),
nMonto NUMBER(16,2)
)
/
CREATE OR REPLACE TYPE ctb.typ_cco_imputacion AS TABLE OF CTB.TYO_CCO_IMPUTACION;
/
create functoin load return ctb.typ_cco_imputacion
TuBLA typ_cco_imputacion;
begin
insert into TUBLA values(1,2,3,4);
insert into TUBLA values(1,4,3,4);
....
retturn tubla
end;
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Wed Mar 03 2004 - 14:07:45 CST