|
楼主 |
发表于 2003-2-10 18:11:58
|
显示全部楼层
121
mysql> insert into OTHER0 values (1,17,5.3,2002-3-19),(2,0,0,2002-3-19),(1,17,5.3,2002-3-15),(2,0,0,2002-3-15);
ERROR 1062: Duplicate entry '0000-00-00' for key 1
各位大哥,我又把数据库重新建立了一遍,但是用mysqlimport 导入时还是出现了上次的问题!于是我直接用上面的insert语句,导了三条数据。没想到这都有错!!
倒!我不能接受了!用select语句发现它只接受了一条!
数据不可能错,也是和结构匹配的,看看它的出错提示,是不是我的日期索引错啦?
下面再次贴上数据库结构:
[root@Home root]cat Report/Report.sql
CREATE TABLE COOKER
(
numb INT UNSIGNED NOT NULL,
Proct INT UNSIGNED NOT NULL,
uptime FLOAT UNSIGNED NOT NULL,
mine INT UNSIGNED NOT NULL,
fans INT UNSIGNED NOT NULL,
water INT UNSIGNED NOT NULL,
date DATE NOT NULL PRIMARY KEY
);
CREATE TABLE CLUSTER
(
numb INT UNSIGNED NOT NULL,
Proct_E INT UNSIGNED NOT NULL,
uptimeE FLOAT UNSIGNED NOT NULL,
top INT UNSIGNED NOT NULL,
avag INT UNSIGNED NOT NULL,
Proct_G INT UNSIGNED NOT NULL,
uptimeG FLOAT UNSIGNED NOT NULL,
date DATE NOT NULL PRIMARY KE |
|