union all --高中 order by schoolTypeGroupNo,schoolTypeGroupNo2, case when businessType ='高级中学' then 1 when businessType ='完全中学' then 2 when businessType ='十二年一贯制学校' then 3 when businessType ='中等技术学校' then 4 when businessType ='成人中等专业学校' then 5 when businessType ='职业高中学校' then 6 when businessType ='其他机构(班)' then 7 end --义务 order by schoolTypeGroupNo,schoolTypeGroupNo2, case when businessType ='小学' then 1 when businessType ='初级中学' then 2 when businessType ='职业初中' then 3 when businessType ='九年一贯制学校' then 4 when businessType ='十二年一贯制学校' then 5 when businessType ='完全中学' then 6 end