Home >Database >navicat >How to set primary key in navicat

How to set primary key in navicat

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-02 17:23:4117478browse

How to set primary key in navicat

The first step is to open Navicat.

How to set primary key in navicat

The second step is to open the database where the data table is located, right-click the database table where you want to add fields, and then click [Design Table].

How to set primary key in navicat

Related recommendations: "Navicat for mysql graphic tutorial"

At this time, all fields of the table are listed.

How to set primary key in navicat

The third step is to select the field as the primary key, such as the code field.

How to set primary key in navicat

The fourth step is to click [Primary Key] under the [Object] menu. At this time, the code field becomes the primary key and is automatically set to non-empty.

How to set primary key in navicat

The fifth step is to set the default value, comment, automatic increment, etc. of the primary key below, and then click [Save] to complete the new primary key setting.

How to set primary key in navicat

The above is the detailed content of How to set primary key in navicat. 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