热心网友
回答时间:2024-11-02 06:00
太简单了。把表的IDCard 为自动增长给去掉,或者把语句改为:
strSql.Append("insert into Archives(");
strSql.Append("Name,Password,Gender,Age,Education,Height,DateOfBirth,Native,Degree,Major,Title,Post)");
strSql.Append(" values (");
strSql.Append("@Name,@Password,@Gender,@Age,@Education,@Height,@DateOfBirth,@Native,@Degree,@Major,@Title,@Post)");
OK。搞定
收起