0
Færdig

MySQL: Display an error if there are multiple AUTO_INCREMENT fields defined in a table.

Jadaw1n 10 år siden opdateret af Agnieszka Kozubek-Krycuń (Chief Scientist) 10 år siden 2
If there are multiple fields defined with AUTO_INCREMENT set, MySQL (and maybe other databases) throw an error:
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
otherthing int NOT NULL AUTO_INCREMENT
)
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
GOD, JEG ER TILFREDS
Tilfredshedsangivelse af Jadaw1n 10 år siden
Planlagt
You're right. We'll add this validation.
Færdig
The validation is now available in Vertabelo.

Kundesupport af UserEcho