mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
17 lines
1.2 KiB
SQL
17 lines
1.2 KiB
SQL
select jsonLength('{"a": "hello", "b": [-100, 200.0, 300]}');
|
|
select jsonType('{"a": "hello", "b": [-100, 200.0, 300]}');
|
|
select jsonHas('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
|
select jsonHas('{"a": "hello", "b": [-100, 200.0, 300]}', 'b');
|
|
select jsonExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 1);
|
|
select jsonExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 2);
|
|
select jsonExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
|
select jsonLength('{"a": "hello", "b": [-100, 200.0, 300]}', 'b');
|
|
select jsonType('{"a": "hello", "b": [-100, 200.0, 300]}', 'b');
|
|
select jsonExtractInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 1);
|
|
select jsonExtractFloat('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 2);
|
|
select jsonExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
|
|
select jsonExtract('{"a": "hello", "b": [-100, 200.0, 300]}', 'Tuple(String, String, String, Array(Float64))');
|
|
select jsonExtract('{"a": "hello", "b": [-100, 200.0, 300]}', 'Array(Int32)', 'b');
|
|
select jsonExtract('{"a": "hello", "b": [-100, 200.0, 300]}', 'Array(String)');
|
|
select jsonExtract('{"a": "hello", "b": [-100, 200.0, 300]}', 'Array(Tuple(Int16, Float32, UInt8))');
|