json_extract_path_text()



現在讓我們來檢視使用以下查詢的 json_extract_path_text(json 文字, json_path 文字) 函式。

查詢

default> select json_extract_path_text('{"tutorial" : 
   {"key" : "tajo"}}','$.tutorial.key') as path;   

結果

上述查詢將生成以下結果。

path 
------------------------------- 
tajo

此查詢將根據 JSON 路徑從 JSON 字串中提取 JSON 字串“tutorial”。

apache_tajo_json_functions.htm
廣告
© . All rights reserved.