Get the App
SLTechnology News&Howtos  ›  Database  › 

How to solve the problem of 1075 error in navicat

Shulou Source: shulou.com Published: 2022-06-01 00:28:25 10月20日 Update

This article mainly introduces how to solve the problem of 1075 error in navicat. It is very detailed and has a certain reference value. Interested friends must finish reading it!

AUTO_INCREMENT in MYSQL generates a unique number when a new record is inserted into the table. If you want to automatically create the value of the primary key field each time you insert a new record, you can create an auto-increment field in the table.

An example of a statement that mysql creates a self-increasing primary key table:

CREATE TABLE `tablename` (`id` int (11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8

If you want to set automatic increment (auto_increment) when creating a table in mysql, it must be the primary key (PRIMARY KEY) setting, not NULL, and only one can be set.

# 1075-Incorrect table definition; there can be only one auto column and it must be defined as a key.

This error means: # 1075-the table definition is incorrect; there can be only one automatic column, which must be defined as the primary key.

If this error occurs, you need to check the table statement, and if you set self-increment, you need to set the self-increment field as the primary key.

The above is all the contents of this article entitled "how to solve the problem of 1075 errors in navicat". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Errors fields questions content new records articles sentences values interests guys buddies meaning numbers more knowledge industry information information channels channels Zhongchuang Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Linux Microsoft OPPO Reno vpn