UPDATE t_re 
  SET 班级人数=(SELECT SUM(StudentName) 
            FROM Student_info 
            WHERE ClassID=t_re.班级代码)
若想要计算出结果要怎样写?