title: PLSQL : Running FORloop for cursor, last row printed twice
body: <p>For now, all i want to do is print the values from my cursor one below the other. 
  <strong>The last row is being printed twice.</strong></p>
  
  <pre><code>IF c_rules_present %ISOPEN THEN
           CLOSE c_rules_present ;
          END IF;
          OPEN c_rules_present;
              LOOP
                  FETCH c_rules_present INTO rule_present_record;
                  dbms_output.put_line(rule_present_record.rdr_dcd_cndtn);
                  EXIT WHEN c_rules_present %notfound;
              END LOOP;
          CLOSE   c_rules_present;
  </code></pre>
  
  <hr>
  
  <pre><code>POST /oauth/v2/accessToken HTTP/1.1
  Host: www.linkedin.com
  Content-Type: application/x-www-form-urlencoded
  
  grant_type=authorization_code&amp;code=987654321&amp;redirect_uri=https%3A%2F%2Fwww.myapp.com%2Fauth%2Flinkedin&amp;client_id=123456789&amp;client_secret=shhdonottell
  
  
  
  curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' -d'{"grant_type":"authorization_code","code":"AQQaI-n6TkOm9po8-a28SQ9g-rEpWE-tjTJvat-DSKhulhpgB_1j93xFpO2y9wQGnu27z7WGJ57Fi1-AbdpGGEgL00Ay0lLHJgKNggYcxGGgTRkKsaEhyDIvDtVgyIf18eanRBPe5YYMFJKXM1Ojoygdgghkhrvx4wLORRkU-eDsZnhfUi7NltX_jKzrYQ","redirect_uri":"http://localhost:3000","client_id":"81k22s8wipax2r","client_secret":"dm2rcFp1631BSMDe"}' 'www.linkedin.com/oauth/v2/accessToken HTTP/1.1'
  </code></pre>