Get alias name from dynamic query
Hi All,
I would make a plsql function using dynamic query.
And the function takes a whole sql query as a parameter.
The main issue is that the function should get what alias or columns were queried.
For example,
FUNCTION_GET_QUERY_ALIAS('SELECT 1 AS col1, 2 AS col2 FROM DUAL')
Inside the function, it should find the alias name COL1 and COL2.
I'd appreciate for any help.