I need to find all the tables in our Oracle database that have attributes that match a certain word. So for example I am using:
SELECT TABLE_NAME
, COLUMN_NAME
FROM USER_TAB_COLUMNS
WHERE UPPER(COLUMN_NAME) LIKE '%ING%'
This returns:
TABLE1 ING
TABLE2 THIS_ING
TABLE3 ING_FIRST
TABLE5 TESTING
I only want to return the results from TABLE1, TABLE2 and TABLE3. I don't want a match when it is only part of a string like TESTING.
I can't seem to get exactly what I need.