Home > Database > navicat > body text

What should I do if Navicat cannot save foreign keys set up?

爱喝马黛茶的安东尼
Release: 2019-08-06 15:48:34
Original
6712 people have browsed it

What should I do if Navicat cannot save foreign keys set up?

1. When designing the table, please select InnoDB as the engine in the options, because InnoDB provides transaction support and advanced database functions such as foreign keys.

Related recommendations: "Navicat for mysql graphic tutorial"

What should I do if Navicat cannot save foreign keys set up?

2. Then create a foreign key in a table, Select the "Foreign Key" tab, enter the name of the referential integrity, select which attribute is the foreign key, select the primary key in which table as the foreign key, and so on. Then click Save. Note that if a problem occurs at this time, you can check whether the primary key and foreign keys are of the same type. If the primary key and foreign keys are both numerical, check the unsigned check box in the design table.

3. You’re done.

The above is the detailed content of What should I do if Navicat cannot save foreign keys set up?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!