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='表名'
    如果对你有帮助,点个"推荐"呗~
    如果发现不当之处,欢迎不吝赐教~
    转载请注明出处哦~
  • 相关阅读:
    postgresql删除活动链接的数据库
    第四篇 函数
    Jmeter响应中文乱码解决办法
    第三篇 条件控制和循环
    第二篇 Python运算符
    npm更换为镜像
    第一篇 Python的数据类型
    newman的常用命令使用总结
    windows下安装newman
    同态包络提取
  • 原文地址:https://www.cnblogs.com/imone/p/8390838.html
Copyright © 2011-2022 走看看