📜  sql 按年份分组 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:02.746000             🧑  作者: Mango

代码示例1
SELECT value1, extract(YEAR FROM my_date)
FROM my_table
GROUP BY value1, extract(YEAR FROM my_date);