首页 > 数据库技术 > 详细

oracle删除主键索引和普通索引

时间:2020-07-18 16:25:12      阅读:85      评论:0      收藏:0      [点我收藏+]

-- 删除普通索引

drop index  索引名字

 

--创建普通索引

create index  索引名  on  表名(索引对应的列名);

 

--删除主键索引

alter table  表名  drop  constraint  索引名

 

--创建主键索引

alter  table  表名  add constraint  表名  add constraint  索引名   primary key (主键);

 

oracle删除主键索引和普通索引

原文:https://www.cnblogs.com/zhuguangzhe/p/13334903.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!