有一张表A:
A B
--- ---
11 aa
22 bb
33 cc
44 dd
现在想用游标
select a.*,rowdi from A a;
不过写pl/sql,用bulk collect,就报错,请帮忙看看
declare
...
type A_tmp is table of A%rowtype;
type A_rowid is table of rowid;
LA_tmp A_tmp;
LA_rowid A_rowid;
begin
open A_curor;
fetch A_curor bulk collect into LA_tmp,LA_rowid;
for i in ...
...
END;
/
就报错说:
expression 'LA_tmp' in the INTO list is of wrong type
请高手们指点下,到底该怎么写才能同时取到table得values和rowid。
谢谢先
A B
--- ---
11 aa
22 bb
33 cc
44 dd
现在想用游标
select a.*,rowdi from A a;
不过写pl/sql,用bulk collect,就报错,请帮忙看看
declare
...
type A_tmp is table of A%rowtype;
type A_rowid is table of rowid;
LA_tmp A_tmp;
LA_rowid A_rowid;
begin
open A_curor;
fetch A_curor bulk collect into LA_tmp,LA_rowid;
for i in ...
...
END;
/
就报错说:
expression 'LA_tmp' in the INTO list is of wrong type
请高手们指点下,到底该怎么写才能同时取到table得values和rowid。
谢谢先
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/640706/viewspace-506146/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/640706/viewspace-506146/