【发布时间】:2017-12-09 12:23:24
【问题描述】:
我想创建一个表
create table Oceny_projekty
(
OProj_Id int not null comment '',
ID_Projektu int comment '',
ID_Studenta int comment '',
OProj_Ocena decimal(1,1) comment '',
OProj_Data date comment '',
primary key (OProj_Id)
);
并用 PowerDesigner 生成的示例数据填充它
insert into Oceny_projekty (OProj_Id, ID_Projektu, ID_Studenta, OProj_Ocena, OProj_Data)
values (2, 18, 10, '2.5', '1857-12-25');
我有这个:
插入 Oceny_projekty(OProj_Id、ID_Projektu、ID_Studenta、 OProj_Ocena, OProj_Data) 值 (2, 18, 10, '2.5', '1857-12-25') 错误 代码:1264。第 1 行“OProj_Ocena”列的值超出范围
如何修改可以接受十进制数字的命令? (整数没有问题) 使用 MySQL Workbench 6.3、PowerDesigner 16.6
提前致谢!
【问题讨论】:
-
您是否将特定的测试数据配置文件与列 OProj_oCena 相关联?它在引号之间生成数字似乎很奇怪。
标签: mysql sql entity workbench powerdesigner