ClickHouse/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql

11 lines
338 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS file;
CREATE TABLE file (s String, n UInt32) ENGINE = File(CSVWithNames);
-- BTW, WithNames formats are totally unsuitable for more than a single INSERT
INSERT INTO file VALUES ('hello', 1), ('world', 2);
SELECT * FROM file;
CREATE TEMPORARY TABLE file2 AS SELECT * FROM file;
SELECT * FROM file2;
DROP TABLE file;