赞
踩
1、创建索引
- create index 索引名 on 表名(列名);
-
- create index 索引名 on 表名(列名1,,列名2);
-
- create unique index 索引名 on 表名(列名1,,列名2);
2、删除索引
- drop index 索引名;
- --ora-02429:无法用于删除强制唯一/主键的索引
- alter table 表名 drop constraint 索引名;
3、查询索引
- --根据索引名,查询表索引字段
- select * from user_ind_columns where index_name='索引名';
- --根据表名,查询一张表的索引
- select * from user_indexes where table_name='表名';
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。