Oracle 在给定索引名称的情况下查找表名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7860925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:23:43 来源:igfitidea点击:
Oracle find tablename given an index name
提问by Victor
I have the name of an index that is existing on some table on some column in the db(oracle 11g). Knowing the name of the index, how can i find which table it belongs to?
我有一个索引的名称,该索引存在于 db(oracle 11g) 中某个列的某个表上。知道索引的名称,如何找到它属于哪个表?
回答by a_horse_with_no_name
SELECT table_name
FROM all_indexes
WHERE index_name = 'YOUR_INDEX'