Table Construction
You are viewing an old version of this question. View
the current version here.
Alter Table EmployeeEvals ADD EvaluatorNum INT(8) NOT NULL AUTO_INCREMENT PRIMARY KEY (EvaluatorNum); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(EvaluatorNum)' at line 1
I'm a student and new to DB. How can I fix this issue?
Answer
The error message tells you where the error is. There's no need for (EvaluatorNum)
after PRIMARY KEY
since you've already given the field name earlier in the statement.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.