1.打印输出
exec dbms_output.put_line('hello');
---需要使用打开
SQL> set serverout on SQL> exec dbms_output.put_line('asda');
asda
2存储过程
//带游标
create or replace procedure SP_Test is tempresult varchar2(1024); cursor cursora is select * from tl_qxq; begin tempresult:='start->'; for cursor_result in cursora loop begin tempresult:=tempresult||cursor_result.id; end; end loop; end SP_Test;
3存储过程调试