Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

This is confusing... ORA-1403, but sqlcode = 100

JackKDec 10 2010 — edited Dec 10 2010
Hi,
declare
  v_dummy varchar2(1);
begin
  select dummy into v_dummy from dual where dummy='Y';
exception
  when no_data_found then
    DBMS_OUTPUT.put_line(to_char(sqlcode) || ' // ' || sqlerrm);
end;
returns
100 // ORA-01403: no data found
Why ORACLE didn't do it correct? It would be BETTER if the output was:
1403 // ORA-01403: no data found
This post has been answered by Saubhik on Dec 10 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2011
Added on Dec 10 2010
2 comments
2,929 views