How to remove unique key from mysql table

后端 未结 7 1935
旧巷少年郎
旧巷少年郎 2021-01-30 08:34

I need to remove a unique key from my mysql table. How can remove that using mysql query.

I tried this but it is not working

alter table tbl_quiz_attempt         


        
7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 08:56

    There are two method two remove index in mysql. First method is GUI. In this method you have to open GUI interface of MYSQL and then go to that database and then go to that particular table in which you want to remove index.

    After that click on the structure option, Then you can see table structure and below you can see table indexes. You can remove indexes by clicking on drop option

    Second method by

    ALTER TABLE student_login_credentials DROP INDEX created_at;
    

    here student_login_credentials is table name and created_at is column name

提交回复
热议问题