substr(col,1,7) 分组

例如

select substr(t.UPDATE_TIME,1,7) as months,sum(t.tot_modal) as sums
from test t
group by substr(t.UPDATE_TIME,1,7)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
  • 2021-11-29
  • 2022-02-08
  • 2022-02-08
相关资源
相似解决方案