Home> Database> Oracle> body text

How to delete unique index in oracle

hzc
Release: 2020-06-08 15:18:39
Original
19568 people have browsed it

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 ;
Copy after login

The second step is to execute the delete index statement

DROP INDEX PK_TABLENAME ;
Copy after login

The third step is to re-create the index.

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!