oracle record and table 无需初始化
2012-03-20 17:53
218 查看
declare
r_rec sys_refcursor;
type rec_def is record (
id varchar2(10)
);
type array_def is table of rec_def INDEX BY BINARY_INTEGER;
recordVar rec_def;
tableVar array_def;
BEGin
null;
recordVar.id:='1';
--DBMS_OUTPUT.PUT_LINE(r_rec.id);
tableVar(1) := recordvar;
end;
不过table是可以初始化的:
tableVar :=array_def();但是要先创建l全局类型array_def;
r_rec sys_refcursor;
type rec_def is record (
id varchar2(10)
);
type array_def is table of rec_def INDEX BY BINARY_INTEGER;
recordVar rec_def;
tableVar array_def;
BEGin
null;
recordVar.id:='1';
--DBMS_OUTPUT.PUT_LINE(r_rec.id);
tableVar(1) := recordvar;
end;
不过table是可以初始化的:
tableVar :=array_def();但是要先创建l全局类型array_def;
相关文章推荐
- oracle record and table type
- oracle create tablespace、user and grant
- Oracle中RECORD、VARRAY、TABLE的使用详解
- DROP TABLE IF EXISTS” in Oracle and SQL Server
- oracle create tablespaces and create user ---cxl
- Oracle Trigger :Before,after,each row and table level triggers ORA-04082 ORA-04084
- ORACLE中RECORD、VARRAY、TABLE的使用详解
- Oracle Nested table、Record
- oracle中数据类型rowtype,Table,Object,Record
- ORACLE中RECORD、VARRAY、TABLE的使用详解
- “DROP TABLE IF EXISTS” in Oracle and SQL Server
- oracle drop table and purge
- oracle 自定义类型,RECORD、VARRAY、TABLE的使用详解
- Oracle create tablespace 、create user and so on
- ORACLE中record、varray、table和%type、%rowtype的使用详解
- ORACLE中RECORD、VARRAY、TABLE的使用详解(转)
- oracle datafile and tablespace
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- Asktom Oracle: Partition table and index .