求教大神。。
strsql.Append("insert into Student(StudentId,Age,StudentName,StudentSex,StudentNation,ClassId,Specialty,Birthday)"); //定义插入语句
strsql.Append(" values (");
strsql.Append("'" + txtID.Text.Trim().ToString() + "',");
strsql.Append("'" + txtAge.Text.Trim().ToString() + "',");
strsql.Append("'" + txtName.Text.Trim().ToString()+"',");
strsql.Append("'" + txtSex.Text.Trim().ToString() + "',");
strsql.Append("'" + txtNative.Text.Trim().ToString() + "'");
strsql.Append("'" + txtClassId.Text.Trim().ToString() + "'");
strsql.Append("'" + comboBox2.Text.Trim().ToString() + "'");
strsql.Append("'" + comboBox1.Text.Trim().ToString() + "'");
strsql.Append(")");
一直提示INSERT 语句中列的数目大于 VALUES 子句中指定的值的数目。VALUES 子句中值的数目必须与 INSERT 语句中指定的列的数目匹配。