Home >Database >phpMyAdmin >How to set foreign key constraints in phpmyadmin

How to set foreign key constraints in phpmyadmin

王林
王林Original
2019-12-05 16:50:374888browse

How to set foreign key constraints in phpmyadmin

First select the database where foreign key constraints need to be set

How to set foreign key constraints in phpmyadmin

Select the table where foreign key constraints need to be set and click [Operation] (required Set the storage engine of the master table and the slave table to be the same)

How to set foreign key constraints in phpmyadmin

Then click [Structure]

How to set foreign key constraints in phpmyadmin

Then click [Related View 】

How to set foreign key constraints in phpmyadmin

Then add foreign key constraints

How to set foreign key constraints in phpmyadmin

Finally click [Save]

How to set foreign key constraints in phpmyadmin

Related tutorial recommendations: phpmyadmin tutorial

The above is the detailed content of How to set foreign key constraints 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