Home  >  Article  >  Database  >  How to set field auto-increment in phpmyadmin

How to set field auto-increment in phpmyadmin

王林
王林Original
2020-01-13 09:56:216616browse

How to set field auto-increment in phpmyadmin

First, open phpmyadmin, create a new table, add the id field, and set the id field to the 'primary key'

How to set field auto-increment in phpmyadmin

Then, in 'Structure'>>'Modify'>>Check 'A_I'. (Extra: AUTO_INCREMENT) Automatic increment. As shown in the picture:

AUTO_INCREMENT =A_I

How to set field auto-increment in phpmyadmin

##View the effect

How to set field auto-increment in phpmyadmin

Recommended related articles and tutorials:

phpmyadmin tutorial

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn