New answers tagged loops
0
votes
how can I fix my SQL for loop so that the index is not out of bounds?
If the order of the values is not important, you could simply do:
id = 1
for i = 1 to 4 do
for j = 1 to 4 do
INSERT(id, i, j)
id += 1
If you ...
Top 50 recent answers are included
Related Tags
loops × 183algorithm-analysis × 84
runtime-analysis × 84
algorithms × 37
time-complexity × 14
asymptotics × 13
loop-invariants × 13
programming-languages × 7
recursion × 7
turing-machines × 6
computability × 6
correctness-proof × 6
big-o-notation × 5
java × 5
hoare-logic × 5
arrays × 4
iteration × 4
imperative-programming × 4
halting-problem × 3
functional-programming × 3
parallel-computing × 3
efficiency × 3
turing-completeness × 3
complexity-theory × 2
data-structures × 2