欢迎来到我的博客,本人把技术和生活随想都积累并分享在这里,很高兴遇见你,和你一同进步。

随笔分类 -  postgresql

摘要:pg 对时间的处理还是很灵活的, + - * / 都有支持期间有个extract 函数还是很有用的,我们先来看看几个例子:[code]postgres=# select extract(epoch from '1970-01-01'::timestamp) ; date_part 0(1 row)p 阅读全文
posted @ 2020-05-14 14:46 Yusuf1111 阅读(1175) 评论(0) 推荐(0)
摘要:(1) select current_timestamp (2)select now() (3)select current_time (4)select current_date 阅读全文
posted @ 2020-05-14 14:24 Yusuf1111 阅读(11581) 评论(0) 推荐(0)