Difficulty with auto column and primary key errors in designer
-
Is it true that the data designer is best used to effect one single change at a time because the order of the SQL script matters? And that the designer is missing some normal SQL capability which makes it hard to navigate?
I keep struggling a with the designer a bit, I always get errors, and not all are that easy to solve even when googling the SQL problem. It seems easier to create a table as you want it from the get go but now that I write that out loud I remember that was one of the SQL features ??
https://pasteboard.co/J0rvnrl.png
When I try to first add AUTO_INCREMENT I get the error:
Incorrect table definition; there can be only one auto column and it must be defined as a keyand when I try to make it a primary? key, I get the error:
Duplicate entry ‘0’ for key ‘PRIMARY’What am I doing wrong?
Sorry if I’m overlooking something obvious here haha.
- The topic ‘Difficulty with auto column and primary key errors in designer’ is closed to new replies.