如果您不想在创建新索引之前删除旧索引,则可以通过使用附加的无用列创建新索引来作弊,例如:http://www.cndba.cn/hbhe0316/article/108514http://www.cndba.cn/hbhe0316/article/108514
假设一个表具有以下配置:
http://www.cndba.cn/hbhe0316/article/108514
http://www.cndba.cn/hbhe0316/article/108514
http://www.cndba.cn/hbhe0316/article/108514http://www.cndba.cn/hbhe0316/article/108514
create table t1 (id number);
create unique index unique1 on t1 (id);
要将索引转换为非唯一索引:http://www.cndba.cn/hbhe0316/article/108514http://www.cndba.cn/hbhe0316/article/108514
http://www.cndba.cn/hbhe0316/article/108514
http://www.cndba.cn/hbhe0316/article/108514
create index temp on t1 (id, 1);
drop index unique1;
create index nonunique on t1 (id);
drop index temp;
版权声明:本文为博主原创文章,未经博主允许不得转载。
oracle