Någon som kan se vad jag gjort för fel?
Hittar inte vad det är den klagar på.
Felmeddelandet jag får är:
Felmeddelandet skrev:
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 '{
id int(11) unsigned NOT NULL AUTO_INCREMENT,
ref_id int(11) unsigned NO' at line 1
CREATE TABLE IF NOT EXISTS survey {
id int(11) unsigned NOT NULL AUTO_INCREMENT,
ref_id int(11) unsigned NOT NULL,
skapadDatum timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
startDatum timestamp NOT NULL,
slutDatum timestamp NOT NULL,
cookieTid int(11) NOT NULL DEFAULT '2592000',
surveyNamn varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (id)
} ENGINE=InnoDB DEFAULT CHARSET=latin1;