如何对SQL语句进行分析?急急 我听说在powerbuild中有PFC功能(记不清了)可以满足我的这个需求,ORACLE有这方面的服务吗?如果捕捉错误信息,是不是与语言相关? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sqlcode 什么的,具体我忘了,我现在只能在网吧上网 非常感谢你的回复,我的MSN:[email protected]我明天一天都在线的,你能 帮帮我吗? Oracle will catch the exception anyway , You must have your fronter source properly coded to black_snailoracle can throw the exception,but it is not detailed enough 一个简单的例子:SQL> declare 2 v_a varchar2(10); 3 begin 4 execute immediate 'select col from t_head'; 5 exception when others then 6 dbms_output.put_line(to_char(sqlcode)); 7 dbms_output.put_line(sqlerrm); 8 end; 9 /-904ORA-00904: invalid column name这说明,ORACLE会返回错误信息,但不是很具体.如果需要非常具体的信息,恐怕只能自己写代码来判断了. thx,我明白你的意思了,有没有更详细的资料介绍一下 已经建好的job,如何让它手工运行? 请好心人解决一下Oracle中的关系代数问题!!! 结果集判等? powerdesign如何生成升级脚本 oracle 11g 最新的版本是多少? 想把不同表中相同字段名称的表找出来。 请教SQL LOAD 中的“OPTIONALLY ENCLOSED BY” 怎么样取出最大ID?(急!!!!!) 如何查找字段值为空的记录? oracle中的自定义函数怎么修改? Access转移到Oracle7的SQL 语法问题?救急啊!!! 一个sql语句,望高手给点提示
我明天一天都在线的,你能 帮帮我吗?
oracle can throw the exception,but it is not detailed enough
SQL> declare
2 v_a varchar2(10);
3 begin
4 execute immediate 'select col from t_head';
5 exception when others then
6 dbms_output.put_line(to_char(sqlcode));
7 dbms_output.put_line(sqlerrm);
8 end;
9 /
-904
ORA-00904: invalid column name这说明,ORACLE会返回错误信息,但不是很具体.如果需要非常具体的信息,恐怕只能自己写代码来判断了.