ClickHouse/tests/queries/0_stateless/01060_defaults_all_columns.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

11 lines
411 B
SQL

DROP TABLE IF EXISTS defaults_all_columns;
CREATE TABLE defaults_all_columns (n UInt8 DEFAULT 42, s String DEFAULT concat('test', CAST(n, 'String'))) ENGINE = Memory;
INSERT INTO defaults_all_columns FORMAT JSONEachRow {"n": 1, "s": "hello"} {};
INSERT INTO defaults_all_columns FORMAT JSONEachRow {"n": 2}, {"s": "world"};
SELECT * FROM defaults_all_columns ORDER BY n, s;
DROP TABLE defaults_all_columns;