oracle for loop
DECLARE
i NUMBER;
BEGIN
FOR i IN 1..5
LOOP
dbms_output.PUT_LINE('i value : ' || i);
END LOOP;
END;
oracle for loop
DECLARE
i NUMBER;
BEGIN
FOR i IN 1..5
LOOP
dbms_output.PUT_LINE('i value : ' || i);
END LOOP;
END;
for loop oracle
-- FOR LOOP --------------
FOR loop_counter IN [REVERSE] lowest_number..highest_number
LOOP
{...statements...}
END LOOP;
-- FOR LOOP (MODERN) --------------
FOR record_index in cursor_name
LOOP
{...statements...}
END LOOP;
-- CURSOR LOOP (OLD STYLE) --------------
OPEN c_customers;
LOOP
FETCH c_customers into c_rowtype_var;
EXIT WHEN c_customers%notfound;
{...statements...};
END LOOP;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us