I have a string which contains SQL SELECT statement.
I wonder how can I output result of the execution of that statement on the screen, execution will be do
If you can change that execute immediate into a dbms_sql cursor, then the following solution should be able to help you, as you can get the column names from a dbms_sql cursor: