oracle结构语法

增加index

  1. 方法一
create index 索引名 on 表名(列名);
drop index 索引名;

e.g

create index i_matchid on j_singleplan_sendcar_t(matchid);

增加unique

alter table j_singleplan_sendcar_t add constraint matchid_unique unique (matchid);
alter table j_singleplan_sendcar_t drop unique matchid_unique;
原文地址:https://www.cnblogs.com/zhuxiang1633/p/13704156.html