How can I drop multiple primary keys in phpmyadmin tables?

前端 未结 4 999
粉色の甜心
粉色の甜心 2021-02-18 23:30

I am working with phpmyadmin.I created a table with one primary key and 5 fields. But now all the integer fields have turned into a primary key. I tried using drop command but i

4条回答
  •  别跟我提以往
    2021-02-18 23:58

    Try this

    ALTER TABLE tablename MODIFY fieldname INT NOT NULL;
    ALTER TABLE tablename DROP PRIMARY KEY;
    

提交回复
热议问题