I am an online student and have just started to learn SQL. I am doing an exercise where I have to create a new database with the following command in Apache Open Office 4.1.3.
CREATE TABLE "tbl_customers" ("customer_id" INTEGER IDENTITY, "first_name" VARCHAR(50), "last_name" VARCHAR(50), "phone" VARCHAR(25), "email" VARCHAR(30), PRIMARY KEY ( "customer_id"));
syntax error, unexpected NAME, expecting ')' or ','
This is a command that an instructor uses on her computer on the other side of the world, in the same version of Open Office, and it executes for her. I have uninstalled, restarted the computer and reinstalled the program, checked the commas and apostrophes, but whatever I try, it keeps giving me the above error.
It should work. Did you run the command by going to Tools -> SQL? Here are step by step instructions.