XConvert info: MySQL Query Error
Time: 2008-12-2 6:11am
SQL: INSERT INTO convert1.cdb_threads (
`tid` , `fid` , `iconid` , `typeid`, `readperm`, `price`,`author` , `authorid` , `subject` , `dateline` , `lastpost` , `lastposter` , `views` , `replies` , `displayorder` , `highlight` , `digest` , `rate` , `blog` , `special` , `attachment` , `subscribed`, `moderated` , `closed`
) VALUES(
'7908', '28', '0', '0', '0', '0', 'chjpxzx', '15500', 'linux内核分析笔记\\51单片机教程\\明明白白C指针\\Beginning Linux Programming \', '1187681820', '1201367520', 'flywin', '531', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
Error: 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 '1187681820', '1201367520', 'flywin', '531', '1', '0', '0', '0', '0', '0', '0', '' at line 4
Errormsg.: 可能原因:1.数据超长或类型不匹配;2.数据库记录重复
Errno.: 1064
这里出错了以后,这条记录后面的大概有1000多条还继续加下去了,当我休正好这个过长的标题
,,,于是出现一系列的字段重复...开始以为是意外,,,,删了几条原记录后发现情况相当糟糕,于是我找到MYSQL数据库在主题表看了看最大的ID值
在原数据表执行 DELETE from dv_topic where topicID between 6003 and 7907
出错行的ID值是7908,我细想一下,我的一个批次是3000的数量 如果中间某个帖子有问题,那么重新从6003[抱歉,我原来的数据库最小的ID是3],也就是第4个批次的起始ID重新转换,,,,,希望官方更新这个小BUG,用SESSION记下出错的ID值.这些对高手来说是EASY,对我我这样刚接触DZ的人,真的是转换起来无比的艰难. |