Home > Database > Oracle > How to delete index in oracle

How to delete index in oracle

WBOY
Release: 2022-01-21 15:10:02
Original
28444 people have browsed it

In Oracle, you can use the "drop index" statement to delete the index. The function of this statement is to delete the specified index. The syntax is "drop index index name;".

How to delete index in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to delete index in oracle

drop index index_name;

1. Create index

create index 索引名 on 表名(列名);
Copy after login

2. Delete index

drop index 索引名;
Copy after login

3. Create combined index

create index 索引名 on 表名(列名1,,列名2);
Copy after login

4, query index

--根据索引名,查询表索引字段
select * from user_ind_columns where index_name='索引名';
--根据表名,查询一张表的索引
select * from user_indexes where table_name='表名';
Copy after login

Recommended tutorial: "Oracle Tutorial"

The above is the detailed content of How to delete 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template