Created
June 3, 2017 08:43
-
-
Save adityadaniel/2365875f5f8d17d3c31b98d4d1405a42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
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 employee_id=1000; | |
dbms_output.put_line('Nama depannya adalah: ' || v_fname ); | |
dbms_output.put_line('Nama belakangnya adalah: ' || v_lname ); | |
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