Good afternoon, I set myself a pharmacy, I decided to create a database and I can’t assign an auto-increment column, there is no extra field that is responsible for this. Tell me how to enable this field in PHP may admin or how to add auto-increment. I give screenshots for example

the first

second

  • What prevents you from performing an ALTER TABLE hello CHANGE my_id my_id INT(20)AUTO_INCREMENT PRIMARY KEY ? In general, use something better: they use SQLYog or MysqlWorkbench or Navicat they are several times faster than PCADMIN, which works through a browser ... ....... and the A_I tick A_I be seen in the photo you provided - Alexey Shimansky

1 answer 1

 ALTER TABLE your_table MODIFY some_column INT NOT NULL AUTO_INCREMENT; 

To use the GUI, select the menu item STRUCTURE, there is a list of all fields. The field can be marked as PRIMARY FIELD by clicking on the golden key, it should become silver.