I am pulling my hair out surrounding this (the above error message)
The code I am using is below:
create database SHIRTS_DB;
CREATE TABLE SHIRTS (
SHIRT_ID INT auto_increment
ARTICLE VARCHAR(50)
COLOUR VARCHAR(50)
SHIRT_SIZE VARCHAR(2)
LAST_WORN INT
primary key shirt_id
);
How do I resolve this? I have been looking around and I am still baffled.
Also, can I not add code as I go along the way? it seems when I add new code/new lines, that's when the error message pops up.... It's all fine when it's within a blank SQL script, but as soon as I add more code or edit a code I already inputted, it gives me error 1064
(I am new to this and learning SQL)