【发布时间】:2021-08-06 09:41:24
【问题描述】:
create TABLE product
(
productid int not null AUTO_INCREMENT,
productname varchar(100) not null,
productdesc varchar(100)not null,
productrate double(100) not null,
imagea varchar(100) not null,
imageb varchar(100) not null,
imagec varchar(100) not null
) type=MyISAM
【问题讨论】:
-
你能发布有问题的实际查询吗?
-
我给了一张图片看看那里。只需点击“图片包含查询和错误”。
-
将 Type=MyISAM 更改为 Engine=MyISAM。
-
我很确定您的 DOUBLE(100) 数据类型也无效......dev.mysql.com/doc/refman/8.0/en/floating-point-types.html
-
我建议不要使用近似的 FLOAT/DOUBLE,而是使用精确的 DECIMAL。
标签: mysql sql phpmyadmin