Skip to Main Content

DevOps, CI/CD and Automation

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!

[Xquery] How to make an increment of variable in a For loop

tien86Dec 11 2011 — edited Dec 12 2011
Hello,

How can i build a simple increment for variable $a by Xquery such as ?

let $a := 0
for $i in (1 to 10)
let $a := $a + 1
return $a

why $a value in this loop always is '1'.

Thank you for reading, its will really helpful for my job if i can solve this problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2012
Added on Dec 11 2011
2 comments
6,569 views