I am getting this error whenever I try to create my table:
#1064 - 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 'NOT NULL, hehi VARCHAR NOT NULL, adds VARCHAR NOT NULL, aob VA...' at line 3
This is my code:
CREATE TABLE patients (
patientId int NOT NULL,
problem VARCHAR NOT NULL,
hehi VARCHAR NOT NULL,
adds VARCHAR NOT NULL,
aob VARCHAR NOT NULL,
PRIMARY KEY (patientID),
CONSTRAINT FK_userspatients FOREIGN KEY (user_id)
REFERENCES users(user_id)
);
What might be the problem?