Thanks for the question, Sharada.
Asked: September 14, 2015 - 8:40 pm UTC
Last updated: September 18, 2015 - 3:57 am UTC
Version: Oracle 10g
Viewed 10K+ times! This question is
SQL> set serverout on SQL> declare 2 cursor c is 3 select rownum, 4 table_name, 5 dbms_xmlgen.getxml('select * from "'||table_name||'"') column_name 6 from user_tables ; 7 r c%rowtype; 8 begin 9 open c; 10 loop 11 fetch c into r; 12 exit when c%notfound; 13 dbms_output.put_line(r.table_name); 14 end loop; 15 end; 16 / DEPT EMP PL/SQL procedure successfully completed.
Sharada Sahoo, September 15, 2015 - 2:35 pm UTC
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library