Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望将表的索引从唯一修改为非唯一。
该表当前不是空的。在进行更新之前是否必须清除所有行?
不,您不需要清除所有行,您只需要删除索引并在没有唯一修饰符的情况下创建它:
create index my_non_unique_ix on my_table( my_col);