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, 2088🔥, 0💬
Popular Posts:
How To Start MySQL Server in MySQL? If you want to start the MySQL server, you can run the "mysqld" ...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
How To Convert Characters to Numbers in Oracle? You can convert characters to numbers by using the T...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...