title: How to return a empty cursor from a stored procedure?
body: <p>I have <code>OUT</code> parameter of a stored procedure as a <code>REF CURSOR</code>. Based on a particular condition, I would want to either return a result set (already implemented).</p>
  <p>But how do I return an empty cursor when the condition fails? Without raising an exception? Just pasting pseudo code:</p>
  <pre><code>IF condition = true THEN
     OPEN OUT_CUR FOR 
     Select Some query
  
  ELSE
  
     Return empty OUT_CUR
  
  END IF
  </code></pre>