title: Oracle cursor with variable columns/tables/criteria
body: <p>I need to open a cursor while table name, columns and where clause are varying. The table name  etc will be passed as parameter. For example</p>
  
  <pre><code>CURSOR batch_cur
  IS
  SELECT a.col_1, b.col_1
  FROM table_1 a inner join table_2 b 
  ON a.col_2 = b.col_2
  WHERE a.col_3 = 123
  </code></pre>
  
  <p>Here, projected columns, table names, join criteria and where clause will be passed as parameters. Once opened, i need to loop through and process each fetched record.</p>