原因为,KS_AskGrade表没有自动增长ID导到,按以下操作
打开升级工具文件,找到以下代码
'插入论坛的初数系统级别
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('管理员',0,'rank5.gif',0,1,1,'red')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('超级版主',0,'rank4.gif',0,1,2,'red')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('版主',0,'rank4.gif',0,1,3,'red')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('学前班',0,'rank1.gif',0,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('一年级',0,'rank1.gif',100,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('二年级',0,'rank1.gif',200,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('三年级',0,'rank1.gif',300,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('三年级',0,'rank2.gif',300,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('四年级',0,'rank2.gif',400,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('五年级',0,'rank2.gif',500,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('六年级',0,'rank2.gif',600,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('七年级',0,'rank3.gif',800,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('八年级',0,'rank3.gif',1000,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('九年级',0,'rank3.gif',1200,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高一年',0,'rank3.gif',1500,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高二年',0,'rank4.gif',1800,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高三年',0,'rank4.gif',2100,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大一',0,'rank4.gif',2500,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大二',0,'rank4.gif',3000,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大三',0,'rank4.gif',3500,1,0,'#000000')")
Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('博士生',0,'rank5.gif',5000,1,0,'#000000')")
把他删除了,然后升级完成后,把你数据库的ks_askgrade这张表删除,将官方全新程序里的数据库的这张表导入到你数据库,这样就行了