PostgreSQL按年月日分组
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PostgreSQL按年月日分组相关的知识,希望对你有一定的参考价值。
Select
EXTRACT(year from cast(joindate as timestamp)) as Year,
EXTRACT(month from cast(joindate as timestamp)) as Month,
EXTRACT(day from cast(joindate as timestamp)) as Day,
......
From Table
Group by Year,Month,Day
以上是关于PostgreSQL按年月日分组的主要内容,如果未能解决你的问题,请参考以下文章