那要如何调用了 这是我在pl/sql中编译通过的脚本
create or replace procedure P_CC_TEST2 is
objectid number(16);
totalcode nvarchar2(64);
objectname nvarchar2(128);
cursor my_cursor is
select objectid,totalcode,objectname from t_cc_object where objecttypeID='1';
record_cursor_table my_cursor%rowtype;
begin
open my_cursor;
loop
fetch my_cursor into record_cursor_table;
exit when my_cursor%notfound;
dbms_output.put_line('处理结果'||record_cursor_table.objectid||'.'||record_cursor_table.totalcode||record_cursor_table.objectname);
end loop;
close my_cursor;
end;
请指点下。谢谢! |