title: How to loop through columns in an oracle pl/sql cursor
body: <p>I am creating a dynamic cursor and I would like to loop over the columns that exist in the cursor.    How would I do that?</p>
  
  <p>For example:</p>
  
  <pre><code>create or replace procedure dynamic_cursor(empid in varchar2, RC IN OUT sys_refcursor) as
       stmt varchar2(100);
     begin
       stmt := 'select * from employees where id = ' || empid;
       open RC for stmt using val;
  
       for each {{COLUMN OR SOMETHING}}
         --TODO: Get this to work
       loop;
  end;     
  </code></pre>