Home  >  Article  >  Database  >  How to add field primary key in phpmyadmin

How to add field primary key in phpmyadmin

尚
Original
2020-03-19 15:59:582631browse

How to add field primary key in phpmyadmin

Add and set the primary key to the built phpMyAdmin table:

Recommended: phpmyadmin introductory tutorial

In the database corresponding to phpMyAdmin Find the table where you want to add the primary key. Then click on the corresponding "Structure" behind the table, as shown in the following figure:

How to add field primary key in phpmyadmin

After opening the phpMyAdmin database table structure, we can see the primary key corresponding to the database table. We Click on the primary key to add and set the primary key to the phpMyAdmin table, as shown in the figure below.

How to add field primary key in phpmyadmin

phpMyAdmin prompts that setting the table primary key is successful. At this time, you can see that the key at the primary key changes color, as shown in the figure below.

How to add field primary key in phpmyadmin

Related recommendations: PHP video tutorial

The above is the detailed content of How to add field primary key 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