--根据表名,查询一张表的索引
select * from user_indexes where table_name='表名';
--根据索引名,查询表索引字段
select * from user_ind_columns where index_name='索引名';
--删除主键约束
alter table 表名 drop constraint 主键名;
--删除索引
drop index 索引名;
--添加主键约束
alter table 表名 add constraint 主键名 primary key (字段, 字段,字段);
--添加组合索引
create unique index 索引名 on 表名 (字段, 字段, 字段)
oracle 修改组合索引
最新推荐文章于 2023-10-24 17:27:25 发布