First, open phpmyadmin, create a new table, add the id field, and set the id field to the 'primary key'
Then, in 'Structure'>>'Modify'>>Check 'A_I'. (Extra: AUTO_INCREMENT) Automatic increment. As shown in the picture:
AUTO_INCREMENT =A_I
##View the effect Recommended related articles and tutorials:The above is the detailed content of How to set field auto-increment in phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!