Hey. I am trying to execute a query that will place all columns with the word “PURPOSE” in it against several schemas and tables. The code I'm using is:
select distinct table_name, column_name
from all_tab_columns
where column_name like '%APPOINTMENT%'
Which works great and tells me the table name and column name.
The problem is that there are more than 90 schemas that I have to run to search in order to find the table name. Is there a way to add to my query that will display the schema name, table name and column name?
Kimbo source
share