For example if 2 indexes are applied on a column named
customer_id
- The first index will be named as
customer_id
itself. - The second index will be names as
customer_id_2
and so on.
To know the name of the index you want to delete or update
SHOW INDEX FROM <table_name>
To delete an index
ALTER TABLE <table_name> DROP INDEX <index_name>;
Thank u. :lol:
Ref : stackoverflow
No comments:
Post a Comment