title: Looping in PL/SQL variable is not a cursor
body: <p>I'm trying to run the following loop:</p>
  
  <pre><code>DECLARE
  v_banknumber varchar2(9) := '123456789';
  v_counter number := 9;
  v_result number;
  begin
  for i in v_banknumber 
  loop
      v_result := v_counter * TO_NUMBER(i) + v_result;
      v_counter := v_counter - 1;
   end loop;
   end;
  </code></pre>
  
  <p>I'm getting a error at line 2:</p>
  
  <pre><code>Error report -
  ORA-06550: line 6, column 10:
  PLS-00456: item 'V_BANKNUMBER' is not a cursor
  ORA-06550: line 6, column 1:
  PL/SQL: Statement ignored
  06550. 00000 -  "line %s, column %s:\n%s"
  *Cause:    Usually a PL/SQL compilation error.
  *Action:
  </code></pre>
  
  <p>If I read this well, it seems like it should work. Anyone here that can explain me why it's not working?</p>
  
  <p>The first digit must be multiplied by 9, the second with 8, the third with 7, and so on and save the sum of it in a result variable.</p>