zoukankan      html  css  js  c++  java
  • oracle关于索引知识

    1、创建一个单一的索引:

    create index 索引名称 on 表名(列名);

    2、创建复合索引

    create index 索引名称 on 表名(列名1,列名2);

    3、删除索引

    drop index 索引名称;

    4、查询表的索引

    select * from all_indexes where table_name = '表名称';

    5、查询表的索引列

    select* from all_ind_columns where table_name = '表名称';

    6、索引表空间

      select 'alter index' ||index_name|| 'rebuild tablespace tbs_name;' index_name from dba_indexes where wner='%***%' and table_name like '%***%'

    7、表空间迁移

      select 'alter table' ||table_name|| 'move tablespace tbs_name;' table_name from dba_tables where wner='%***%' and table_name like '%***%'

    8、带lob字段

      select 'alter table' ||table_name|| 'move lob('||index_name||') store as (tablespace tbs_name);' from dba_indexes where wner='%***%' and index_name like '%***%'

  • 相关阅读:
    SQLServer 可疑
    String与Long互转
    洛谷 P5644
    洛谷 P3783
    洛谷 P4663
    洛谷 P3438
    Atcoder Grand Contest 054 题解
    迭代器失效问题
    Solution -「CF 232E」Quick Tortoise
    Solution -「NOI 2020」「洛谷 P6776」超现实树
  • 原文地址:https://www.cnblogs.com/linyu51/p/13374648.html
Copyright © 2011-2022 走看看