📜  如何在 oracle 中获取同义词列表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:51.591000             🧑  作者: Mango

代码示例1
-- Depending on connected user grants:
SELECT * FROM USER_SYNONYMS WHERE SYNONYM_NAME = 'syn_name';  -- User synonyms
SELECT * FROM ALL_SYNONYMS WHERE TABLE_NAME = 'table_name';      -- Available to user
SELECT * FROM DBA_SYNONYMS WHERE TABLE_OWNER = 'schema_name'; -- All schemas