go 第二步: 截取学生第N道题的答案和正确答案第N道题做比较,把做对的人的分数加1。 update dbo.T_dxyysyj_BankedCloze2_Record set Fraction =Fraction +1 where QuestionID ='3' and SUBSTRING(ExamAnswer,dbo.fn_find(@find,@str,@mystart)+1,@mylength)=SUBSTRING(@str,dbo.fn_find(@find,@str,@mystart)+1,@mylength) 第三步: 封装成存储过程。