mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 10:52:04 +08:00

* postgres: add tests to handle multiple statements in the same query * better test explanation
7 lines
249 B
SQL
7 lines
249 B
SQL
-- SELECT t FROM tbl WHERE t='one'; SELECT t FROM tbl WHERE t='three';
|
|
-- lib/pq allows multiple queries to run, and return results for all the queries
|
|
CREATE TEMPORARY TABLE tbl (
|
|
t text
|
|
);
|
|
|
|
INSERT INTO tbl (t) VALUES ('one'),('two'),('three'); |