title: Oracle SQL: How to define loop counter value in a column?
body: <p>(I am very new to SQL ...) I want to define a loop where the loop counter must be in a column (e.g. ID):</p>
  
  <p>for i in (select ID from IDTable) loop 
  ...</p>
  
  <p>Of course the above doesn't work. Any help?</p>