select score as '成绩' ,name as '姓名' from studentsUNION ALLselect AVG(score) from students;
在最后一行显示平均数;
select score as '成绩' ,name as '姓名' from studentsUNION ALLselect SUM(score) from students;
在最后一个显示合计数;