MySQL: How to set the Primary Key on phpMyAdmin?

前端 未结 4 1273
迷失自我
迷失自我 2021-02-07 04:50

Help! First time using phpMyAdmin. The column that I intend to set as a primary key is of TEXT in phpMyAdmin, it gave me an error message, the primary key can\'t be set! And I d

4条回答
  •  独厮守ぢ
    2021-02-07 05:12

    You can view the INDEXES column below where you find a default PRIMARY KEY is set. If it is not set or you want to set any other variable as a PRIMARY KEY then , there is a dialog box below to create an index which asks for a column number ,either way you can create a new one or edit an existing one.The existing one shows up a edit button whee you can go and edit it and you're done save it and you are ready to go

提交回复
热议问题