-
Contributing Member
Iteration in PL/SQL
Hi,
I need to change this following code into Pl/sql.. can any one help me out?
for(m=1;m<=n-2;m++)
Regards,
Karthi.....
-
Re: Iteration in PL/SQL
the following a sample program for a FOR loop.
modify as per your rerquirment.
BEGIN
FOR I IN 1..100 LOOP
--if the number is divisible by 2 then it is a even number.
IF MOD(I,2)=0 THEN
--display the number.
dbms_output.put_line(I);
END IF;
END LOOP;
END;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules