title: Run a query inside an Oracle Stored Procedure
body: <p>I have a query</p>
  
  <pre><code>select * from myTable
  </code></pre>
  
  <p>...and I want to wrap this query inside a stored procedure, and have the store procedure output the results of this query.</p>
  
  <p>How do I do it?</p>
  
  <p>In ms-sql, i can store my query as a string to a string variable. And then do "Execute (variable)". Why no such thing in Oracle?</p>