string.Format(sql, student.StudentNo.....)
Format第一个参数是要格式的内容,后面的参数就是对应SQL里的{0},{1}这些,上面那个将变成insert student(......) values(student.StudentNo,
student.LoginPwd,
student.StudentName,
student.Gender,
student.GradeId,
student.Phone,
student.BornDate,
student.Email,
student.IdentityCard);
Ok thank