2011-11-05 68 views

回答

11
SELECT table_name 
    FROM user_tab_cols 
WHERE column_name = 'IS_REVIEW_APPEALS' 
+4

如果您不是架構的所有者,可能想查詢ALL_TAB_COLS。 – ConcernedOfTunbridgeWells

+2

@ConcernedOfTunbridgeWells - 確實。但是這個問題明確地說「在我的模式中」。 –

+0

這也在VIEWS中搜索,這太棒了! – mCeviker

2

見下查詢如何獲得給定名稱都列在Oracle特定模式:

SELECT 
    t.owner AS schema_name, 
    t.table_name, 
    c.column_name 
FROM sys.all_tables t 
    INNER JOIN sys.all_tab_columns c ON t.table_name = c.table_name 
WHERE LOWER(t.owner) = LOWER('MySchemaNameHere') 
    AND LOWER(c.column_name) LIKE LOWER('%MyColumnNameHere%') 
ORDER BY t.owner, t.table_name, c.column_name;