-- 刪除普通索引
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刪除。