title: How to Fetch a column value by alias returned by Procedure returning REF CURSOR
body: <p>There is a procedure that is returning results with multiple columns. Columns changes on an input parameter like </p>
  
  <p>for <strong>FLAG=1</strong> returned columns can be </p>
  
  <pre><code>NAME,AGE,ID,LOCATION
  </code></pre>
  
  <p>and for <strong>FLAG=2</strong> returned columns can be </p>
  
  <pre><code>EMPID,LOCATION,GENDER,ID
  </code></pre>
  
  <p>and so on.</p>
  
  <p>The columns returned are from JOIN so are not of a specific table type.</p>
  
  <p>I want to get <strong>ID</strong> only while looping through the REF CURSOR returned by the Procedure. </p>
  
  <p>How can I achieve such behavior.</p>
  
  <p><strong>Edit:</strong> To be more specific the number of columns can change based on the input parameters but <strong>ID</strong> column will be available in each result. How to loop through the result of such procedure to get only <strong>ID</strong> parameter.</p>
  
  <p>Thanks in advance.</p>