Home  >  Article  >  Database  >  How to delete unique index in oracle

How to delete unique index in oracle

hzc
hzcOriginal
2020-06-08 15:18:3919651browse

How to delete unique index in oracleHow to delete a unique index in oracle

The first step is to delete the connection between the table and the index

ALTER TABLE TABLENAME DROP CONSTRAINT PK_TABLENAME ;

The second step is to execute the delete index statement

DROP INDEX PK_TABLENAME ;

The third step is to re-create the index.

create unique index PK_TABLENAME on TABLENAME (ID,NAME);

Recommended tutorial: "Oracle Tutorial"

The above is the detailed content of How to delete unique index in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn