当前位置:Gxlcms > 数据库问题 > oracle索引简单使用

oracle索引简单使用

时间:2021-07-01 10:21:17 帮助过:5人阅读

查询表索引 select * from user_ind_columns where table_name = upper(HY_PROJECT) and column_name = upper(PRO_ID); --创建索引 CREATE UNIQUE INDEX HY_PROJECT_PRO_ID on HY_PROJECT(PRO_ID); --处理索引产生的碎片,重建索引或者合并索引 --合并索引,无需额外存储空间 alter index HY_PROJECT_PRO_ID coalesce; --重建索引 alter index HY_PROJECT_PRO_ID rebuild; --删除索引 drop index HY_PROJECT_PRO_ID;

 

oracle索引简单使用

标签:pre   lte   project   oracle   body   ora   drop   create   and   

人气教程排行