You are on page 1of 1

declare mdep_no number(3); begin select dep_no into mdep_no from emp where dep_no=40; select dep_no into

mdep_no from emp; exception when no_data_found then dbms_output.put_line('there is not any data in '||mdep_no||' department'); end;

You might also like