V
V
VladimirMelnik2017-08-24 11:46:38
MySQL
VladimirMelnik, 2017-08-24 11:46:38

How to create a MySql auto-increment field?

When creating an auto-increment field in the database, an error occurred.
Query error:
#1075 - Incorrect table definition: only one auto-increment column can exist and it must be defined as a key

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
codemania, 2017-08-24
@VladimirMelnik

You probably already have an auto-increment column, or you create a simple one and don't set it to PRIMARY KEY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question