打印表名的存储过程,不知道错在哪里?存储过程:SQL codecreate or replace procedure query_tables ascurso
打印表名的存储过程,不知道错在哪里? 存储过程:
SQL code
create or replace procedure query_tables ascursor c_row_recisselect table_name from user_tables where table_name like 'LEE_CLIENT%';begin for v_row_rec in c_row_rec loop dbms_output.put_line(v_row_rec.table_name); end loop;end;
执行 exce query_tables后 提示: cann't perform this operation on a close dataset
请教达人!
[解决办法] exce query_tables? 写错了 [解决办法] 我用你的存储过程在我本机试了一下没有任何错误 begin -- Call the procedure query_tables; end; [解决办法] 写的应该没有错误。