1 (изменено: olliver2, 2015-09-04 13:27:04)

Тема: ERRO 1064

Доброго времени суток !
Помогите решить проблему,
Пытаюсь создать таблицу MySQL ругается :
ERROR 1064(42000):You have an error in your SQL syntax ;check the manual thar corresponds to your MySQL server version for the right syntax to use near order
'id' int NOT NULL auto_increment,
'title' varchar(255) NOT NULL default '' at line 1

Сама таблица:
CREATE TABLE order(
'id' int not null auto_increment,
'title' varchar(255) not null default '',
'author' varchar(255) not null default '',
'pubyear' int,
'price' int,
'quantity' int not null default '1',
'orderid' varchar(50) not null default '',
'datetime' int,
PRIMARY KEY(id) )

Помогите найти ошибку.

2

Re: ERRO 1064

olliver2 сказал:

Помогите найти ошибку.

Используйте косые кавычки для полей и имен таблиц - `id`.