-- 删除普通索引
drop index 索引名字
--创建普通索引
create index 索引名 on 表名(索引对应的列名);
--删除主键索引
alter table 表名 drop constraint 索引名
--创建主键索引
alter table 表名 add constraint 表名 add constraint 索引名 primary key (主键);
-- 删除普通索引
drop index 索引名字
--创建普通索引
create index 索引名 on 表名(索引对应的列名);
--删除主键索引
alter table 表名 drop constraint 索引名
--创建主键索引
alter table 表名 add constraint 表名 add constraint 索引名 primary key (主键);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。