Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the sum of a variable within a loop

580456Sep 26 2007 — edited Sep 26 2007
Hello,

I have a variable in a loop that I'd like to be able to get a sum of when I'm done itirating thru the loops. So if the variable is:

loop 1: v = 2
loop 2: v = 1
loop 3: v = 5

I'd like to be able to get a sum of 8 at the end.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2007
Added on Sep 26 2007
6 comments
2,449 views