码迷,mamicode.com
首页 > 数据库 > 详细

查看oracle中表的索引

时间:2018-10-30 11:14:37      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:table   acm   network   opera   select   ora   oracl   net   ble   

查看oracle中表的索引

oracle中表的索引信息存在 user_indexes 和 user_ind_columns 两张表里面,
其中

user_indexes 系统视图存放是索引的名称以及该索引是否是唯一索引等信息,

user_ind_columns 统视图存放的是索引名称,对应的表和列等

sql示例:

select* from all_indexes where table_name=ACM_NETWORK_OPERATION;
select * from user_ind_columns where table_name=ACM_NETWORK_OPERATION;

 

查看oracle中表的索引

标签:table   acm   network   opera   select   ora   oracl   net   ble   

原文地址:https://www.cnblogs.com/lidedong/p/9875235.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!