回答編集履歴
2
epochとかいらんかった。
test
CHANGED
@@ -14,12 +14,7 @@
|
|
14
14
|
aaa as
|
15
15
|
(
|
16
16
|
SELECT
|
17
|
-
to_timestamp(
|
18
|
-
generate_series(
|
19
|
-
EXTRACT(EPOCH FROM min(dt))::int,
|
20
|
-
EXTRACT(EPOCH FROM max(dt))::int
|
21
|
-
)
|
22
|
-
) at
|
17
|
+
generate_series(min(dt), max(dt), interval '1 second') as dt
|
23
18
|
from hoge
|
24
19
|
),
|
25
20
|
bbb as
|
1
typo
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```sql
|
4
4
|
create table hoge (dt timestamp without time zone);
|
5
|
-
|
5
|
+
|
6
6
|
insert into hoge values
|
7
7
|
('2024-08-29 09:00:00'),
|
8
8
|
('2024-08-29 09:00:01'),
|