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!

pass column name as table name in oracle sql

Rajesh123Jan 23 2018 — edited Jan 23 2018

Hi All

I need to pass the below TABLE_NAME to the From clause of another SQL statement.

select TABLE_NAME from all_tab_columns

where column_name like 'ORDER_ID'

and table_name like 'ABC%'

select formula_id

from TABLE_NAMEĀ  -- I need to pass TABLE_NAME to this Query see the TABLE_NAME from the above Query

where formula_id in (select FORMULA_ID from XXC_TABLE where formula_name like 'HST%')

This post has been answered by Gaz in Oz on Jan 23 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2018
Added on Jan 23 2018
17 comments
5,163 views