Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
set verify off
set serveroutput on
accept emp_id prompt "Enter the employee id to display: "
declare
e s_emp%rowtype;
begin
select * into e from s_emp where id = '&emp_id';
dbms_output.put_line('&emp_id: '||e.first_name||' '||e.last_name);
exception
when no_data_found then
dbms_output.put_line ('Error: No employee id -- &emp_id');
end;
/
SQL> @tt_298
Enter the employee id to display: 1
1: Carmen Velasquez
PL/SQL procedure successfully completed.
SQL> @tt_298
Enter the employee id to display: 999
Error: No employee id -- 999
PL/SQL procedure successfully completed.