title: Running loop in script in sql plus
body: <p>I am running a script in sql plus, I have a for loop in my script:</p>
  
  <pre><code>BEGIN
    FOR count IN 1..100 LOOP
      INSERT INTO CompanyShare VALUES (count, 1, 250);
    END LOOP;
  END;
  
  BEGIN
    FOR count IN 101..200 LOOP
      INSERT INTO CompanyShare VALUES (count, 2, 50);
    END LOOP;
  END;
  </code></pre>
  
  <p>When I run the script this error came up:</p>
  
  <blockquote>
    <p>ORA-06550: line 6, column 1: PLS-00103: Encountered the symbol "BEGIN"</p>
  </blockquote>
  
  <p>Where am I going wrong?</p>