0
Completat
MySQL: Display an error if there are multiple AUTO_INCREMENT fields defined in a table.
If there are multiple fields defined with AUTO_INCREMENT set, MySQL (and maybe other databases) throw an error:
CREATE TABLE test (
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
otherthing 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
0
Planned
Agnieszka Kozubek-Krycuń (Chief Scientist) fa 10 anys
You're right. We'll add this validation.
0
Completat
Agnieszka Kozubek-Krycuń (Chief Scientist) fa 10 anys
The validation is now available in Vertabelo.
Customer support service by UserEcho