Question: ERROR 1064 (42000): You have an error in your SQL syntax; checkthe manual that corresponds to your MySQL server version for theright syntax to use

ERROR 1064 (42000): You have an error in your SQL syntax; checkthe manual that corresponds to your MySQL server version for theright syntax to use near 'FOREIGN KEY REFERENCES StuID(StuID) )' atline 5

CREATE TABLE Advisors ( AdvID int NOT NULL PRIMARY KEY, LastNamevarchar(255) NOT NULL, FirstName varchar(255) NOT NULL, StuID intFOREIGN KEY REFERENCES StuID(StuID) );

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!