Home > Database > navicat > How to create a foreign key to a table in navicat

How to create a foreign key to a table in navicat

藏色散人
Release: 2019-08-16 13:55:17
Original
5334 people have browsed it

How to create a foreign key to a table in navicat

#How does navicat create a foreign key to a table?

First open the design interface of the created table, as shown in the figure

How to create a foreign key to a table in navicat

Then click on the foreign key to display the foreign key setting interface, as shown in the figure

How to create a foreign key to a table in navicat

Customize the name, click on the field to display the field window, where the fields of the table are displayed, as shown in the figure

How to create a foreign key to a table in navicat

Click on the reference database to display the drop-down list. The database connection configured in Navicat is displayed here, as shown in the figure

How to create a foreign key to a table in navicat

Click on the reference table to display the reference table list. Displayed here is the table in the corresponding parameter database, as shown in the figure

How to create a foreign key to a table in navicat

Click the reference field to display the reference field small window, which is the field of the reference table, as shown in the figure

How to create a foreign key to a table in navicat

Set the delete and update operations, click Save to complete the foreign key creation, as shown in the figure

How to create a foreign key to a table in navicat

Related recommendations: "Navicat for mysql graphic tutorial"

The above is the detailed content of How to create a foreign key to a table in navicat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template