title: PostgreSQL cursors
body: <p>I am trying to learn basic cursors using PostgreSQL. This is my script:</p>
  
  <pre><code>DECLARE cur_employees CURSOR FOR
    SELECT *
    FROM   employee
  
  CLOSE cur_employees 
  </code></pre>
  
  <p>I want to traverse the list and output those which are active. Where should I start?</p>