随笔- 807
文章- 150
评论- 23
阅读-
151万
随笔分类 - PostgreSQL SQL
Postgresql 时间加减运算
摘要:now()::timestamp(0)精确到秒 加法: SELECT now()::timestamp(0) + '1 year'; --当前时间加1年 SELECT now()::timestamp(0) + '1 month'; --当前时间加一个月 SELECT now()::timestam
阅读全文