在Postgres中将日期转换为日期

ann*_*nna 9 sql postgresql sql-date-functions

如何将日期为"2012-08-03"的列转换为Postgres中的日期?

a_h*_*ame 20

使用提取功能:

select extract(doy from the_date_column)
from the_table
Run Code Online (Sandbox Code Playgroud)