clickhouse 按年进行统计,统计近12个月的数据 使用什么方法 求个sql
第一次使用clickhouse 数据库存的是String字符串精确到毫秒的 我用的parseDateTimeBestEffort()转的格式
select toYear(date_) as year, sum(...)group by 1大概这样,可能太简单了,没人回