I have a requirement where in I have queries in the form:
select tab1.col1 as column1, tab2.col1 as column1
from table1 tab1 inner join table2 tab2 on tab1.key1=tab2.key2
I would like to get the three things from this:
table1|col1|column1
table2|col2|comumn2
Also with this if possible I would like to fetch the datatype of the selected columns.
I know this can be done manually, but I have over 2000 select queries and each of these queries are fetching over 100 fields. So the job is getting boring and time consuming.
Any ideas on how I can automate this. I have oracle SQL developer and can even write UNIX shell script if it would serve my job.