Hi,
In the script that creates MySQL database, there is a create table
section that gives me a syntax error. Can you help me?
DROP TABLE IF EXISTS descs;
CREATE TABLE descs (
id mediumint(9) NOT NULL auto_increment,
description text,
hash bigint(20) NOT NULL,
PRIMARY KEY (id),
KEY hash (hash)
);
ERROR 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 'hash bigint(20) DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY
Where is the problem?
Thanks
In the script that creates MySQL database, there is a create table
section that gives me a syntax error. Can you help me?
DROP TABLE IF EXISTS descs;
CREATE TABLE descs (
id mediumint(9) NOT NULL auto_increment,
description text,
hash bigint(20) NOT NULL,
PRIMARY KEY (id),
KEY hash (hash)
);
ERROR 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 'hash bigint(20) DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY
Where is the problem?
Thanks
Comment