Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题陈述:-
给定一个 oracle 表名,我如何才能确定是否在该表的特定列上创建了任何索引?
我知道这是一个非常基本的问题,我对 SQL 的东西不太熟悉,所以这就是为什么会出现问题。因此,如果有人可以帮助我,请在这里发布?
SELECT index_name FROM all_ind_columns WHERE table_name = 'THE_TABLE' AND column_name = 'THE_COLUMN' AND index_owner = 'THE_OWNER';
这应该告诉您在表 'THE_TABLE' 中具有所有者 'THE_OWNER' 的任何索引的名称。该列可能是也可能不是索引中的唯一列。
与字典成为朋友。它会帮助你!