在java derby中,我无法弄清楚是什么原因造成的:java.sql.SQLException:语法错误:在第4行第95列遇到“ s”错误42X01

时间:2019-01-05 00:23:51

标签: sql derby javadb

无法弄清楚我的代码出了什么问题,这似乎导致了问题。表USERDATA的创建没有问题,但表CARS却没有问题。

DROP TABLE "USERDATA";

CREATE TABLE "USERDATA"
(
"USER_ID" INT not null primary key
        GENERATED ALWAYS AS IDENTITY
        (START WITH 1, INCREMENT BY 1),   
"EMAIL" VARCHAR(50), 
"PASSWORD" VARCHAR(50), 
"FNAME" VARCHAR(50),   
"LNAME" VARCHAR(50),
"USERTYPE" VARCHAR(10)
);


DROP TABLE "CARS";

CREATE TABLE "CARS"
(
"CAR_ID" INT not null primary key
        GENERATED ALWAYS AS IDENTITY
        (START WITH 1, INCREMENT BY 1),   
"CAR_MAKE" VARCHAR(50),
"CAR_MODEL" VARCHAR(50),
"CAR_ENGINE" VARCHAR(20), 
"CAR_POWER" VARCHAR(20),
"CAR_SPEED" VARCHAR(20),
"CAR_CATEGORY" VARCHAR(20),
"CAR_YEAR" VARCHAR(4),
"CAR_LONG_DESCRIPTION" VARCHAR(300),
"CAR_PRICE" VARCHAR(50),
"CAR_IMG_LOCATION" VARCHAR(20)
);    

0 个答案:

没有答案