You are on page 1of 1

DECLARE

CURSOR curs_get_countries IS
SELECT *
FROM CARRERA;
v_countries CARRERA%ROWTYPE;
BEGIN
-- DBMS_OUTPUT.PUT_LINE('hello world');
OPEN curs_get_countries;
LOOP
FETCH curs_get_countries INTO v_countries;
EXIT WHEN curs_get_countries%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(v_countries.NOMBRE ||
' is in region ' ||
v_countries.ID_CARRERA ||

' is the country id');


END LOOP;
CLOSE curs_get_countries;
END;

You might also like