mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
11 lines
338 B
SQL
11 lines
338 B
SQL
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;
|