zoukankan      html  css  js  c++  java
  • oracle索引操作

    select * from all_indexes where table_name='表名' and owner='用户名';  --查询某用户下某张表的所有索引   
    
    create index 索引名 on 表名 (字段名) --创建索引

    CREATE INDEX 索引名 ON 表名 (字段名) NOLOGGING PARALLEL 4; --创建索引(不打印日志,并行改为4。适用与同时创建大量索引) alter index 旧索引名 rename to 新索引名; --修改索引名称 ALTER INDEX 索引名 COALESCE; --合并索引 ALTER INDEX 索引名 REBUILD; --重建索引 DROP INDEX 索引名; --删索引 --查询表注释 select * from user_tab_comments where table_name='表名'; --user_tab_comments:table_name,table_type,comments --相应的还有dba_tab_comments,all_tab_comments,这两个比user_tab_comments多了ower列。 --获取字段注释: select * from user_col_comments where table_name='表名'; --user_col_comments:table_name,column_name,comments --查询表约束 select constraint_name from dba_constraints where table_name='表名'
    如果对你有帮助,点个"推荐"呗~
    如果发现不当之处,欢迎不吝赐教~
    转载请注明出处哦~
  • 相关阅读:
    和大家一起了解Windows Server 2016 License许可证授权方式
    centos的cockpit安装使用
    Nscan-20150223
    JexBoss-20170328
    InsightScan-20150320
    Clusterd-20151119
    BBScan-20200419
    Astra-20190405
    为什么计算机计算时间要从1970年开始
    Appium环境搭建
  • 原文地址:https://www.cnblogs.com/imone/p/8390838.html
Copyright © 2011-2022 走看看