首页 > 电脑技术 > 多媒体技术 > oracle 存储过程Execute Immediate

oracle 存储过程Execute Immediate

问题:在oracle存储过程里是这样输出错误信息么?dbms_output.put_line(error);
这个error要定义成什么样的类型啊!!给个例子!谢谢

同样的代码(存储过程),在我单位的服务器上运行Execute Immediate就没有问题,在我自己的机器上运行到Execute Immediate就出错!!这个是为什么,有什么要注意的么?
最佳答案: dbms_output.put_line(TO_CHAR(SQLCODE)||': '||SQLERRM);