三个命令:
select 乡,count(*) as 人数 from spb group by 乡
select 乡+村 as 乡村,count(*) as 人数 from spb group by 乡,村
select 乡+村+组 as 乡村组,count(*) as 人数 from spb group by 乡,村,组
三个命令:
select 乡,count(*) as 人数 from spb group by 乡
select 乡+村 as 乡村,count(*) as 人数 from spb group by 乡,村
select 乡+村+组 as 乡村组,count(*) as 人数 from spb group by 乡,村,组
select 乡,count(*) as 人数 from spb group by 乡
select 乡+村 as 乡村,count(*) as 人数 from spb group by 乡,村
select 乡+村+组 as 乡村组,count(*) as 人数 from spb group by 乡,村,组