SPOOL FINDER.sql
SELECT 'select '''||table_name||'.'||column_name||''', count(*) from '
||table_name||' where '||column_name||' = ''MY_TARGET'' GROUP BY
'''||table_name||'.'||column_name||''';'
from dba_tab_columns where data_type = 'VARCHAR2';
SPOOL OFF
@FINDER
You will have to replace MY_TARGET with whatever value it is you are
looking for.
Also, you will have to change VARCHAR2 to whatever datatype (DATE,
NUMBER, etc) you are looking for.
Be advised - this will probably take a long time to run.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.