ClickHouse/tests/queries/0_stateless/02154_default_keyword_insert.sql

8 lines
314 B
MySQL
Raw Normal View History

2021-12-24 14:09:32 +00:00
CREATE TEMPORARY TABLE IF NOT EXISTS default_table (x UInt32, y UInt32 DEFAULT 42, z UInt32 DEFAULT 33) ENGINE = Memory;
INSERT INTO default_table(x) values (DEFAULT);
INSERT INTO default_table(x, z) values (1, DEFAULT);
INSERT INTO default_table values (2, 33, DEFAULT);
SELECT * FROM default_table ORDER BY x;