「PostgreSQL 13.2」justify_hoursで24時間を1日とする時間間隔の調整を行う

環境
Windows 10 Home 64bit
PostgreSQL 13.2

書式
justify_hours(interval)
24時間を1日とする時間間隔の調整を行います

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
postgres=# select justify_hours(interval '27 hours') result;
result
----------------
1 day 03:00:00
(1)
postgres=# select justify_hours(interval '27 hours') result; result ---------------- 1 day 03:00:00 (1 行)
postgres=# select justify_hours(interval '27 hours') result;
     result
----------------
 1 day 03:00:00
(1 行)

 

PostgreSQL

Posted by arkgame