Hi
I'm trying to make following table in java(netbeans):
But when I try to run the commands, I get en Lexical error for each of the tables that I'm trying to make.
Can someone pleasë help
Thanks
I'm trying to make following table in java(netbeans):
Code:
DROP TABLE "Userdata"; DROP TABLE "ChargeHistory"; DROP TABLE "Price"; CREATE TABLE “Userdata” ( “UserID” varchar (8) NOT NULL, "firstName" varchar (20) NOT NULL, "lastName" varchar (30) NOT NULL, “AccountBalance” double NOT NULL, “UserPIN” int NOT NULL, PRIMARY KEY (“UserID”) ); CREATE TABLE “ChargeHistory” ( “UserID” varchar (8) NOT NULL, “Date” varchar (20) NOT NULL, “ChargeAmountDKK” double NOT NULL, “ChargeAmountkWh” double NOT NULL, FOREIGN KEY (“UserID”) REFERENCES “Userdata” (“UserID”) ); CREATE TABLE “Price” ( “Date” varchar (20) NOT NULL, “Price” double NOT NULL, PRIMARY KEY (“Date”) );
Can someone pleasë help
Thanks
Comment