la mia tabella è la seguente:
CREATE TABLE `test`.`doc` (
`id` int(11) NOT NULL auto_increment,
`creationDate` date NOT NULL,
`title` varchar(255) NOT NULL,
`description` text,
`attachmentPath` varchar(255) default NULL,
`restrict` tinyint(1) NOT NULL COMMENT 'not public',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
e la query che mi ritorna errore
INSERT INTO doc (creationDate,title,restrict) VALUES ('2006-12-05','',1);
ERROR 1064 (42000): 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 'restrict) VALUES ('2006-12-05',' ' at line 1
uso mysql 5.1, ma non capisco il motivo dell'errore.
Qualcuno ha dei consigli?
Grazie