Collections:
Drop an Existing Index in MySQL
How To Drop an Existing Index in MySQL?
✍: FYIcenter.com
If you don't need an existing index any more, you should delete it with the "DROP INDEX indexName ON tableName" statement. Here is an example SQL script:
mysql> DROP INDEX tip_subject ON tip; Query OK, 0 rows affected (0.13 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> SHOW INDEX FROM TIP; +------------+-------------+--------------+-------------+... | Non_unique | Key_name | Seq_in_index | Column_name |... +------------+-------------+--------------+-------------+... | 0 | PRIMARY | 1 | id |... +------------+-------------+--------------+-------------+... 1 row in set (0.00 sec)
⇐ Show All Indexes of a given Table in MySQL
2018-02-14, 3326🔥, 0💬
Popular Posts:
What To Do If the StartDB.bat Failed to Start the XE Instance in Oracle? If StartDB.bat failed to st...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
Can You Drop an Index Associated with a Unique or Primary Key Constraint in Oracle? You can not dele...
How To Count Rows with the COUNT(*) Function in SQL Server? If you want to count the number of rows,...
What Are the Basic Features of a Trigger in SQL Server? Since a SQL Server trigger is a really an ev...