PostgreSQL 时间计算总结

最近做一些统计相关的需求,用到了一些时间计算,总结一下。 1、获取时间戳 select extract(epoch from current_timestamp) 或 select date_part('epoch', current_timestamp),current_timestamp可以用n
posted @ 2021-04-15 13:52  钻牛角尖儿  阅读(2696)  评论(0编辑  收藏  举报