📜  oracle 中的 for 循环 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:06.982000             🧑  作者: Mango

代码示例2
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