oralce ROLLUP

select id,area,stu_type,sum(score) score

from students

group by rollup(id,area,stu_type)

order by id,area,stu_type;

posted @ 2019-07-02 10:16  樊伟胜  阅读(99)  评论(0)    收藏  举报