oracle中定义type时,能否在其字段中包含一个游标?
比如:
create or replace type type_test
(
id varchar(20),
num number(10),
cur cursor
);
但是我这样定义是有错误的,报这个错误:
PLS-00201:identifier 'CURSOR' must be declared,
如果我想在其中包含一个游标应该怎么做?应该如何定义这个type?
[解决办法]
发布时间: 2012-05-24 11:55:41 作者: rapoo
oracle中定义type时,能否在其字段中包含一个游标?
比如:
create or replace type type_test
(
id varchar(20),
num number(10),
cur cursor
);
但是我这样定义是有错误的,报这个错误:
PLS-00201:identifier 'CURSOR' must be declared,
如果我想在其中包含一个游标应该怎么做?应该如何定义这个type?
[解决办法]