Mysql phpMyAdmin:#1064-创建新表时的SQL语法
我想使用phpMyAdmin内置功能在我的数据库中构建一个新表,但在我完成所有字段并点击Go后-出现以下错误:Mysql phpMyAdmin:#1064-创建新表时的SQL语法,mysql,Mysql,我想使用phpMyAdmin内置功能在我的数据库中构建一个新表,但在我完成所有字段并点击Go后-出现以下错误: #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 ') NOT NULL, `data` DATETIME NOT NULL , `link_pictur
#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 ') NOT NULL, `data` DATETIME NOT NULL , `link_picture` VARCHAR( 250 ) NOT NULL , ' at line 6
我不知道为什么
以下是SQL代码:
CREATE TABLE `prod`.`info_prod` (
`id` INT( 100 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`prod_name` VARCHAR( 250 ) NOT NULL ,
`link_prod` VARCHAR( 250 ) NOT NULL ,
`pd` VARCHAR( 10 ) NOT NULL ,
`price` DOUBLE( 250 ) NOT NULL ,
`data` DATETIME NOT NULL ,
`link_picture` VARCHAR( 250 ) NOT NULL ,
`link_picture2` VARCHAR( 250 ) NOT NULL ,
INDEX ( `pd` ) ,
UNIQUE (
`prod_name`
)
) ENGINE = INNODB;
这段代码有什么问题?似乎只是语法问题
`price` DOUBLE( 250,0 ) NOT NULL
错误中的代码与您发布的代码不同。e、 g.
link\u poza
在哪里?