Skip to content

Instantly share code, notes, and snippets.

@adityadaniel
Created June 3, 2017 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityadaniel/381097df1b2325d5a9e54c4a67b47f2b to your computer and use it in GitHub Desktop.
Save adityadaniel/381097df1b2325d5a9e54c4a67b47f2b to your computer and use it in GitHub Desktop.
DECLARE
nama varchar2(100);
v_fname employees.first_name%type;
v_lname employees.last_name%type;
BEGIN
SELECT first_name,
last_name INTO v_fname,
v_lname
FROM employees
WHERE last_name='Chan';
exception
when no_data_found then
dbms_output.put_line('Data karyawan tidak ditemukan.');
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment