SQL: set existing column as Primary Key in MySQL

前端 未结 5 931
北恋
北恋 2021-01-31 13:23

I have a database with 3 columns:

id, name, somethingelse  

This table has no index set and i am getting \"No index defined!\" in phpmyadmin

5条回答
  •  长发绾君心
    2021-01-31 13:57

    If you want to do it with phpmyadmin interface:

    Select the table -> Go to structure tab -> On the row corresponding to the column you want, click on the icon with a key

提交回复
热议问题