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