月的總數量,按月查詢顯示如下的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