mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-20 23:41:01 +00:00
7 lines
320 B
MySQL
7 lines
320 B
MySQL
|
DROP TABLE IF EXISTS json_square_brackets;
|
||
|
CREATE TABLE json_square_brackets (id UInt32, name String) ENGINE = Memory;
|
||
|
INSERT INTO json_square_brackets FORMAT JSONEachRow [{"id": 1, "name": "name1"}, {"id": 2, "name": "name2"}]
|
||
|
|
||
|
SELECT * FROM json_square_brackets ORDER BY id;
|
||
|
DROP TABLE IF EXISTS json_square_brackets;
|