title: Is it possible to output a SELECT statement from a PL/SQL block?
body: <p>How can I get a PL/SQL block to output the results of a <code>SELECT</code> statement the same way as if I had done a plain <code>SELECT</code>?</p>
  
  <p>For example how to do a <code>SELECT</code> like:</p>
  
  <pre><code>SELECT foo, bar FROM foobar;
  </code></pre>
  
  <p>Hint :</p>
  
  <pre><code>BEGIN
  SELECT foo, bar FROM foobar;
  END;
  </code></pre>
  
  <p>doesn't work.</p>