比如你想更改student表中的学号为1001学生所在班级 stu_num为int型时代码: string strSql="Update student set stu_class='"+txtClass.Text.Trim()+"' where stu_num=1001"; stu_num为字符串类型时的代码 string strSql="Update student set stu_class='"+txtClass.Text.Trim()+"' where stu_num='1001'";