1.

Why do we use %ROWCOUNT cursor attribute in PL/SQL?

Answer»

To FIND the FACTORIAL of a NUMBER, the FOLLOWING is the code:

DECLARE a number :=1;     n number := 5;     BEGIN while n > 0 loop    a:=n*a;          n:=n-1;             end loop;           dbms_output.put_line(a);    end;

The output:

120


Discussion

No Comment Found