Home > Database > Mysql Tutorial > Can indexes be deleted in mysql?

Can indexes be deleted in mysql?

青灯夜游
Release: 2020-10-13 15:23:45
Original
3195 people have browsed it

Indexes in mysql can be deleted. You can use the "DROP INDEX" statement to delete the index. The syntax format is "DROP INDEX ON " . It is recommended to delete unused indexes because they will slow down the update speed of the table and affect the performance of the database.

Can indexes be deleted in mysql?

(Recommended tutorial: mysql video tutorial)

Deleting an index means to delete the table Delete existing indexes. It is recommended to delete unused indexes because they will slow down the update speed of the table and affect the performance of the database. For such an index, it should be deleted.

Basic syntax

When the index is no longer needed, you can use the DROP INDEX statement to delete the index.

Grammar format:

DROP INDEX <索引名> ON <表名>
Copy after login

The syntax description is as follows: