Ecco il mio problema stavo seguendo un libro che diceva di scrivere questo codice SQL:
Quando lo importo però mi da quest'errore:codice:CREATE TABLE "widget" { "widgetid" SERIAL PRIMARY KEY NOT NULL, "name" varchar(255) NOT NULL, "description" text }; INSERT INTO "widget" ("name", "dexcription") VALUES('Foo', 'This is a footacular widget!');
Errore
query SQL:
CREATE TABLE "widget"{ "widgetid"SERIAL PRIMARY KEY NOT NULL ,
"name"VARCHAR( 255 ) NOT NULL ,
"description"TEXT};
Messaggio di MySQL:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"widget"
{
"widgetid" SERIAL PRIMARY KEY NOT NULL,
"name" varchar(255) NOT NUL' at line 1
Perchè?

Rispondi quotando