ClickHouse/tests/queries/0_stateless/00544_insert_with_select.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

10 lines
218 B
SQL

DROP TABLE IF EXISTS test;
CREATE TABLE test(number UInt64, num2 UInt64) ENGINE = Log;
INSERT INTO test WITH number * 2 AS num2 SELECT number, num2 FROM system.numbers LIMIT 3;
SELECT * FROM test;
DROP TABLE test;