postgresql 查詢當前時間

需求:PostgreSQL中有四種獲取當前時間的方式。 解決方案: 1.now()spa 返回值:當前年月日、時分秒,且秒保留6位小數。3d 2.current_timestampblog 返回值:當前年月日、時分秒,且秒保留6位小數。(同上)class 申明:now和current_timestamp幾乎沒區別,返回值相同,建議用now。date 3.current_timeim 返回值:時分秒
相關文章
相關標籤/搜索