我想在Postgres中获得以下内容:
select day_in_month(2);
Run Code Online (Sandbox Code Playgroud)
预期产量:
28
Run Code Online (Sandbox Code Playgroud)
Postgres有没有内置的方法来做到这一点?
我将 GTFS 提要存储到 SQL 数据库中,并且预计某些时间会存储在时间值的 24:00:00 上限之上。例如,一些列车在上午 12:30 运行,但被列为前几天服务,并且该运行时间在 GTFS 规范中存储为 24:30。
解决这个问题的最佳方法是什么?我应该将它存储为字符串吗?