Get the App
SLTechnology News&Howtos  ›  Database  › 

How to set and modify primary keys in phpmyadmin

Shulou Source: shulou.com Published: 2022-06-01 19:21:20 10月05日 Update

How does phpmyadmin set and modify primary keys? I believe that many novice rookies are ignorant of the use of phpmyadmin. Through the summary of this article, I hope you can gain more. The following information is about phpmyadmin.

Open the phpMyAdmin application, enter the database name and login password on the login page, and then click execute, as shown in the following figure.

After successfully logging in to phpMyAdmin, click the database on the navigation on the left, as shown in the following figure.

In the phpMyAdmin database, click New Database Table, as shown in the following figure.

After opening the phpMyAdmin New Database Table page, click on the "index" of the new table column on the right and select primary. Selecting primary means that the primary key of the table is set, and then click execute, as shown in the following figure.

Add a set primary key to the built phpMyAdmin table

Find the table to which you want to add the primary key in the database corresponding to phpMyAdmin. Then click the corresponding structure at the back of the table, as shown in the following figure.

After opening the phpMyAdmin database table structure, we can see the corresponding primary key of the database table. We can click the primary key to add the setting primary key to the phpMyAdmin table, as shown in the following figure.

OK,phpMyAdmin prompts you to set the table primary key successfully, and you can see that the key at the primary key has changed color, as shown in the following figure.

Code to add and set the phpMyAdmin table primary key

I see click to open the SQL tab on the phpMyAdmin software, then enter the code to add the phpMyAdmin primary key in the input box, and then click execute. This is shown in the following figure.

The above is the phpmyadmin to set up the primary key and modify the primary key picture and text steps, the detailed use of the need for you to use their own hands to understand. If you want to know more about it, welcome to follow the industry information channel!

Tags: Data database login input success code content more structure software page selection do-it-yourself right picture and text password that is application software situation novice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi OPPO Reno vpn Microsoft Shulou Technology