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 in oracle
DECLARE
count number(2) := 10;
BEGIN
FOR count in 10..20 (FOR count in REVERSE 10..20)
LOOP
dbms_output.put_line("COUNT : " || count);
END LOOP;
END;
-- FOR count in 10..20
-- it will print value from 10 to 20
-- FOR count in REVERSE 10..20
-- it will print value from 20 to 10
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