Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get alias name from dynamic query

user594873Sep 22 2008 — edited Sep 25 2008
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.
This post has been answered by Karthick2003 on Sep 23 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2008
Added on Sep 22 2008
16 comments
1,402 views