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!

how can i get list of columns used in all tables where in the column names are to be specified dynam

2790388Nov 7 2014 — edited Nov 7 2014

Hi,

Is there a solutuion on how can i get list of columns used in all tables where in the column names are to be specified dynamically for all tables under a owner.

For example :-

SELECT TABLE_NAME , COLUMN_NAME

FROM   ALL_TAB_COLUMNS

WHERE  COLUMN_NAME LIKE '%EMP_NUM%' ;

This will give me the list of tables having the columns EMP_NUM which i'm explicitly mentioning.

How can i make the column names dynamic , i.e for all columns in all tables

for a schema.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2014
Added on Nov 7 2014
6 comments
2,835 views