无法弄清楚我的代码出了什么问题,这似乎导致了问题。表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)
);