17,377
社区成员
发帖
与我相关
我的任务
分享
select tablename from table1
--楼主参考一下。
declare
cursor test_cu is select * from tb_name;
tb_re tb_name%rowtype;
begin
if test_cu%isopen = false then
open test_cu;
fi
loop
fetch test_cu into tb_re;
dbms_output.put_line(tb_re.col);
exit when test_cu%notfound;
end loop;
close test_cu;
end;