zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Oracle下查看索引的语句

Oracle索引 查看 语句
2023-06-13 09:11:27 时间

大家好,又见面了,我是你们的朋友全栈君。

1. 查询一张表里面索引

select * from user_indexes where table_name=upper('表名'); 

2. 查询被索引字段

select * from user_ind_columns where index_name=('索引名称'); 

3. 给某一字段创建索引

create index 索引名 on 表名(字段);

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/143043.html原文链接:https://javaforall.cn