0

I am wondering if there is anyway to search for a certain word or phrase in all tables/rows in SQL.

I have tried,

SELECT * 
FROM all_tab_cols
WHERE column_name LIKE '%WORD%'
; 

However, this doesn't bring back what I want.

My desired output would be this query bringing back 'WORD' that is in all tables and all columns and all rows. I know its a very general search which may bring back a lot of data but I need to search for a certain word and have no idea which table/column this word is in.

Alex Fields
  • 67
  • 2
  • 11

1 Answers1

0

Try this in case you are searching for columns

SELECT * from dba_objects WHERE
object_name like '%WORD%'
Bibin Mathew
  • 455
  • 3
  • 11