17,382
社区成员




--这个打印,你运行时是没保存的,你要不写进文本,要不写到表里
--在plsql中调试运行,可以从窗口中看到打印的信息
...
exception
when others then
insert into table(a) values (sqlcode || sqlerrm); --这是写进表里
或者:
utl_file包写文件
end;
EXCEPTION
when others then
dbms_output.put_line('计算出现错误');
return -1;
--oracle有异常处理,很强大,不比java弱~~~
create or replace function...
...
begin
exception
when others then
--写你想要做的事
end;