月的总数量,按月查询显示如下的SQL语句
1月 2月 3月 。。。。。
100 2000 4554 。。。。
SQL:
select sum(case month when 1 then num else o end)as 1yue,sum(case month when 2 then num else o end)as 2yue.......group by month
月的总数量,按月查询显示如下的SQL语句
1月 2月 3月 。。。。。
100 2000 4554 。。。。
SQL:
select sum(case month when 1 then num else o end)as 1yue,sum(case month when 2 then num else o end)as 2yue.......group by month