key | value |
---|---|
type | postgres |
host | localhost |
port | 5432 |
user | user |
database | postgres |
Created
July 23, 2020 00:24
-
-
Save mtgto/00d3c5820effeaebb4968d53d08d5431 to your computer and use it in GitHub Desktop.
timestamptz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select time || ':00' as time, name, value | |
from ( | |
values | |
(timestamptz '2020-07-22 09:00:00 UTC', 'b', 3) | |
, (timestamptz '2020-07-22 10:00:00 UTC', 'a', 1) | |
, (timestamptz '2020-07-22 10:00:00 UTC', 'b', 2) | |
) as t (time, name, value) | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time | name | value | |
---|---|---|---|
2020-07-22 18:00:00+09:00 | b | 3 | |
2020-07-22 19:00:00+09:00 | a | 1 | |
2020-07-22 19:00:00+09:00 | b | 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment