PostgreSQL 实现历史上的今天

PostgreSQL About 144 words

需求

博客中需要展示一个同月同日发布的文章列表功能。

实现

其中create_tstimestamptz类型。

select * from post where to_char(create_ts, 'MM-dd') = to_char(current_date, 'MM-dd');
Views: 253 · Posted: 2023-11-09

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh