Skip to content
Advertisement

When issuing a command to MySQL, I’m getting that error “#1075 – Incorrect table definition;”

Advertisement

Answer

The entire error message is:

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

This is clear enough: MySQL requires that you define the auto-increment column as a primary key:

Demo on DB Fiddle

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement