postgresql 查询当前时间

需求:PostgreSQL中有四种获取当前时间的方式。 解决方案: 1.now()spa 返回值:当前年月日、时分秒,且秒保留6位小数。3d 2.current_timestampblog 返回值:当前年月日、时分秒,且秒保留6位小数。(同上)class 申明:now和current_timestamp几乎没区别,返回值相同,建议用now。date 3.current_timeim 返回值:时分秒
相关文章
相关标签/搜索