Replies: 0
I have watched every. single. video you have on YouTube, and then tried to design and create a table. If I put a value in the default column for person_id, I get an error message that the value is wrong. If I leave it blank, then I get an error that there is a syntax problem. But I don’t see where the syntax is wrong. Can you help?
Here is the script:
CREATE TABLEnew_registration`
(person_id int NOT NULL auto_increment
,email_address varchar NOT NULL
,first_name varchar NOT NULL
,last_name varchar NULL
,street_address varchar NULL
,city varchar NULL
,state varchar NULL
,zip int NULL
,phone varchar NULL
,PRIMARY KEY (person_id)
) ENGINE InnoDB DEFAULT CHARACTER SET utf8 COLLATE=utf8_general_ci;
CREATE UNIQUE INDEX email ON new_registration (email_address);`