mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* postgres: add snapshot tests * fixed wrong comment Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com> --------- Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
18 lines
548 B
SQL
18 lines
548 B
SQL
-- SELECT * FROM tbl
|
|
CREATE TEMPORARY TABLE tbl (
|
|
"time" timestamp with time zone,
|
|
v double precision,
|
|
c text
|
|
);
|
|
|
|
INSERT INTO tbl ("time", v, c) VALUES
|
|
('2023-12-24 14:30:03 UTC', 10, 'a'),
|
|
('2023-12-24 14:30:03 UTC', 110, 'b'),
|
|
('2023-12-24 14:31:03 UTC', 20, 'a'),
|
|
('2023-12-24 14:31:03 UTC', 120, 'b'),
|
|
('2023-12-24 14:32:03 UTC', 30, 'a'),
|
|
('2023-12-24 14:32:03 UTC', 130, 'b'),
|
|
('2023-12-24 14:33:03 UTC', 40, 'a'),
|
|
('2023-12-24 14:33:03 UTC', 140, 'b'),
|
|
('2023-12-24 14:34:03 UTC', 50, 'a'),
|
|
('2023-12-24 14:34:03 UTC', 150, 'b'); |