MySQL

How to Drop Index From Table in MySQL

In this tutorial, we are going to see how to drop index from a table in MySQL. To drop an existing index from a table, use DROP INDEX statement.
 

Syntax:
DROP INDEX index_name ON table_name

In this syntax:

  • First, specify the name of the index you want to drop after the DROP INDEX keyword.
  • Second, specify the name of the table where the index is located.
 

Example: How to Drop Index From Table in MySQL

The following statement removes the index named “name” from the “Persons” table:

	
DROP INDEX name ON Persons;
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *