Из всех таблиц, правильно созданных в базе данных, ниже, сводит меня с ума, не получается!MySQL ERROR 1064 Не могу понять это
Я очень благодарен за вашу помощь в расшифровке ошибки.
"DROP TABLE IF EXISTS `content_pages`;",
"CREATE TABLE content_pages (
id int(10) NOT NULL auto_increment,
category int(10) NOT NULL default '0',
title varchar(200) NOT NULL default '',
page blob NOT NULL,
page_type varchar(20) NOT NULL default '',
display_in_theme int(5) NOT NULL default '0',
html_header int(5) NOT NULL default '0',
reads int(10) NOT NULL default '0',
PRIMARY KEY (id)
) ENGINE = MyISAM;",
ERROR REPORT:
Database Queries
Query: CREATE TABLE content_pages (id int(10) NOT NULL auto_increment, category int(10) NOT NULL default '0', title varchar(200) NOT NULL default '', page blob NOT NULL, page_type varchar(20) NOT NULL default '', display_in_theme int NOT NULL default '0', html_header int NOT NULL default '0', reads int NOT NULL default '0', PRIMARY KEY (id)) ENGINE = MyISAM;
Error: 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 'reads int NOT NULL default '0', PRIMARY KEY (id)) ENGINE = MyISAM' at line 9
Примечание:
Я попытался удалить INT (5) и междунар-х (10) ссылки; тоже не работает.
'reads' резервируется слово в MySQL https://dev.mysql.com/doc/refman/5.5/en/reserved-words.html –