会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢迎来到我的博客,本人把技术和生活随想都积累并分享在这里,很高兴遇见你,和你一同进步。
Yusuf1111
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
postgresql
PG extract 函数示例
摘要: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)
Postgresql 四种方式获取当前时间
摘要:(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)
公告