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!

Why no_data_found exception is not raised

prakashJul 7 2011 — edited Jul 7 2011
Hi all,

Why no_data_found exception is not raised when ever we use min or max in select statement.
Kindly take a look at below plsql block.



declare
v_date date;
begin
select min(hiredate) into v_date from emp11 WHERE EMPNO=736900;
dbms_output.put_line(v_date);
exception
when others
then
dbms_output.put_line(sqlcode);
dbms_output.put_line(sqlerrm);
end;
/

Thanks,
P Prakash
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2011
Added on Jul 7 2011
13 comments
4,071 views