SQL: set existing column as Primary Key in MySQL

前端 未结 5 920
北恋
北恋 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 14:10

    Go to localhost/phpmyadmin and press enter key. Now select:

    database --> table_name --->Structure --->Action  ---> Primary -->click on Primary 
    

提交回复
热议问题