mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
10 lines
456 B
SQL
10 lines
456 B
SQL
|
|
select JSONExtract('{"a": "123", "b": 456, "c": [7, 8, 9]}', 'Tuple(a String, b String, c String)');
|
|
|
|
with '{"string_value":null}' as json select JSONExtract(json, 'string_value', 'Nullable(String)');
|
|
with '{"string_value":null}' as json select JSONExtract(json, 'string_value', 'LowCardinality(Nullable(String))');
|
|
|
|
select JSONExtractString('{"a": 123}', 'a');
|
|
select JSONExtractString('{"a": "123"}', 'a');
|
|
select JSONExtractString('{"a": null}', 'a');
|