mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Please just work
This commit is contained in:
parent
7965c638d2
commit
fd07dbe1f7
@ -43,8 +43,8 @@ SELECT JSON_EXISTS('$.a[*][0].h', '{"a":[[{"b":1}, {"g":1}],[{"h":1},{"y":1}]]}'
|
|||||||
SELECT '--MANY ROWS--';
|
SELECT '--MANY ROWS--';
|
||||||
DROP TABLE IF EXISTS 01889_sql_json;
|
DROP TABLE IF EXISTS 01889_sql_json;
|
||||||
CREATE TABLE 01889_sql_json (id UInt8, json String) ENGINE = MergeTree ORDER BY id;
|
CREATE TABLE 01889_sql_json (id UInt8, json String) ENGINE = MergeTree ORDER BY id;
|
||||||
INSERT INTO 01889_sql_json(json) VALUES(0, '{"name":"Ivan","surname":"Ivanov","friends":["Vasily","Kostya","Artyom"]}');
|
INSERT INTO 01889_sql_json(id, json) VALUES(0, '{"name":"Ivan","surname":"Ivanov","friends":["Vasily","Kostya","Artyom"]}');
|
||||||
INSERT INTO 01889_sql_json(json) VALUES(1, '{"name":"Katya","surname":"Baltica","friends":["Tihon","Ernest","Innokentiy"]}');
|
INSERT INTO 01889_sql_json(id, json) VALUES(1, '{"name":"Katya","surname":"Baltica","friends":["Tihon","Ernest","Innokentiy"]}');
|
||||||
INSERT INTO 01889_sql_json(json) VALUES(2, '{"name":"Vitali","surname":"Brown","friends":["Katya","Anatoliy","Ivan","Oleg"]}');
|
INSERT INTO 01889_sql_json(id, json) VALUES(2, '{"name":"Vitali","surname":"Brown","friends":["Katya","Anatoliy","Ivan","Oleg"]}');
|
||||||
SELECT JSON_QUERY('$.friends[0 to 2]', json) FROM 01889_sql_json;
|
SELECT JSON_QUERY('$.friends[0 to 2]', json) FROM 01889_sql_json;
|
||||||
DROP TABLE 01889_sql_json;
|
DROP TABLE 01889_sql_json;
|
||||||
|
Loading…
Reference in New Issue
Block a user