Created
July 17, 2017 12:20
-
-
Save abdulsamedkayaduman/c6bb624028fd58605175365cbfac98b7 to your computer and use it in GitHub Desktop.
Cursor Ödevi
This file contains 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 | |
c_id hr.employees.employee_id%type; | |
c_name hr.employees.first_name%type; | |
c_surname hr.employees.last_name%type; | |
CURSOR c_employees is | |
SELECT employee_id, first_name, last_name FROM hr.employees; | |
BEGIN | |
OPEN c_employees; | |
LOOP | |
FETCH c_employees into c_id, c_name, c_surname; | |
** | |
EXIT WHEN c_employees%notfound; | |
dbms_output.put_line(c_id || ' ' || c_name || ' ' || c_surname); | |
END LOOP; | |
CLOSE c_employees; | |
END; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment