Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abdulsamedkayaduman/c6bb624028fd58605175365cbfac98b7 to your computer and use it in GitHub Desktop.
Save abdulsamedkayaduman/c6bb624028fd58605175365cbfac98b7 to your computer and use it in GitHub Desktop.
Cursor Ödevi
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