在写一个分数系统,想从表a中提取各个班级分数之和,单独写在表b里
create table b as select 字段1,字段2,字段3,...... from a
UPDATE TABLEB SET B.SUM=(select sum(a.score) from a where a.classid=b.calssid)