substr(to_char(...),6,2) as 月份
to_char就是你第一句那个
在select 中加一列 to_char(max(a.createdate),'MM') as 月
加个字段,mouth(xxx)