{"Entry":{"collection":"func","key":"json-query","name":"JSON_QUERY","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"17"}],"content_hash":"e681c982494b718d9d8b1b3d9b3f30dd741e40911db7302a4f103161af938652","first_version":"17","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-27T17:57:28.82448+08:00","last_version":"20","name":"JSON_QUERY","name_key":"json_query","position":16017,"present_in":["17","18","19","20"],"signature":"JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb","signature_count":1,"slug":"json-query","source_rev":"b7bd9cda","summary":"Returns the result of applying the SQL/JSON path_expression to the context_item.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-query","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-query","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the result of applying the SQL/JSON path_expression to the context_item.","description_html":"Returns the result of applying the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-SQLJSON-QUERYING","file":"functions-json.html","slug":"18"},"group":"json","group_label":"Json Functions And Operators","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"Returns the result of applying the SQL/JSON path_expression to the context_item.","description_html":"Returns the result of applying the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eJSON_QUERY\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e, \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003ePASSING\u003c/code\u003e { \u003cem class=\"replaceable\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"literal\"\u003eAS\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003evarname\u003c/code\u003e\u003c/em\u003e } [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e]\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eRETURNING\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003edata_type\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eFORMAT JSON\u003c/code\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eENCODING UTF8\u003c/code\u003e\u003c/span\u003e] \u003c/span\u003e] \u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eWITHOUT\u003c/code\u003e | \u003ccode class=\"literal\"\u003eWITH\u003c/code\u003e { \u003ccode class=\"literal\"\u003eCONDITIONAL\u003c/code\u003e | [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eUNCONDITIONAL\u003c/code\u003e\u003c/span\u003e] } } [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] \u003ccode class=\"literal\"\u003eWRAPPER\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eKEEP\u003c/code\u003e | \u003ccode class=\"literal\"\u003eOMIT\u003c/code\u003e } \u003ccode class=\"literal\"\u003eQUOTES\u003c/code\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eON SCALAR STRING\u003c/code\u003e\u003c/span\u003e] \u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e | \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e | \u003ccode class=\"literal\"\u003eEMPTY\u003c/code\u003e { [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] | \u003ccode class=\"literal\"\u003eOBJECT\u003c/code\u003e } | \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003eexpression\u003c/code\u003e\u003c/em\u003e } \u003ccode class=\"literal\"\u003eON EMPTY\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e | \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e | \u003ccode class=\"literal\"\u003eEMPTY\u003c/code\u003e { [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] | \u003ccode class=\"literal\"\u003eOBJECT\u003c/code\u003e } | \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003eexpression\u003c/code\u003e\u003c/em\u003e } \u003ccode class=\"literal\"\u003eON ERROR\u003c/code\u003e\u003c/span\u003e]) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-SQLJSON-QUERYING","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-query","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"JSON_QUERY","Summary":"返回将 SQL/JSON path_expression 应用于 context_item 的结果。","BodyHTML":"返回将 SQL/JSON \u003cem\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e 应用于 \u003cem\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e 的结果。\u003cpre\u003eJSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb\u003c/pre\u003e返回将 SQL/JSON \u003cem\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e 应用于 \u003cem\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e 的结果。","SourceRevision":"ca936764","ContentHash":"5f310b9112a70ab5b5be84e8f6b48fe24fd905dc5d5555d26cd0139b7f12cc58","Payload":{"description_zh":"返回将 SQL/JSON path_expression 应用于 context_item 的结果。","description_zh_html":"返回将 SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e 应用于 \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e 的结果。","signatures":[{"description_zh":"返回将 SQL/JSON path_expression 应用于 context_item 的结果。","description_zh_html":"返回将 SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e 应用于 \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e 的结果。","returns":"jsonb","text":"JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"9eafa74df532bef9f2030f682c59ebebf17bf7b0cd35eadb8aa03850fffc64ce","Text":"JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb","Returns":"jsonb","Payload":{"description":"Returns the result of applying the SQL/JSON path_expression to the context_item.","description_html":"Returns the result of applying the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eJSON_QUERY\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e, \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003ePASSING\u003c/code\u003e { \u003cem class=\"replaceable\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"literal\"\u003eAS\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003evarname\u003c/code\u003e\u003c/em\u003e } [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e]\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eRETURNING\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003edata_type\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eFORMAT JSON\u003c/code\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eENCODING UTF8\u003c/code\u003e\u003c/span\u003e] \u003c/span\u003e] \u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eWITHOUT\u003c/code\u003e | \u003ccode class=\"literal\"\u003eWITH\u003c/code\u003e { \u003ccode class=\"literal\"\u003eCONDITIONAL\u003c/code\u003e | [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eUNCONDITIONAL\u003c/code\u003e\u003c/span\u003e] } } [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] \u003ccode class=\"literal\"\u003eWRAPPER\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eKEEP\u003c/code\u003e | \u003ccode class=\"literal\"\u003eOMIT\u003c/code\u003e } \u003ccode class=\"literal\"\u003eQUOTES\u003c/code\u003e [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eON SCALAR STRING\u003c/code\u003e\u003c/span\u003e] \u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e | \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e | \u003ccode class=\"literal\"\u003eEMPTY\u003c/code\u003e { [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] | \u003ccode class=\"literal\"\u003eOBJECT\u003c/code\u003e } | \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003eexpression\u003c/code\u003e\u003c/em\u003e } \u003ccode class=\"literal\"\u003eON EMPTY\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e { \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e | \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e | \u003ccode class=\"literal\"\u003eEMPTY\u003c/code\u003e { [\u003cspan class=\"optional\"\u003e\u003ccode class=\"literal\"\u003eARRAY\u003c/code\u003e\u003c/span\u003e] | \u003ccode class=\"literal\"\u003eOBJECT\u003c/code\u003e } | \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003eexpression\u003c/code\u003e\u003c/em\u003e } \u003ccode class=\"literal\"\u003eON ERROR\u003c/code\u003e\u003c/span\u003e]) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"JSON_QUERY ( context_item, path_expression [PASSING { value AS varname } [, ...]] [RETURNING data_type [FORMAT JSON [ENCODING UTF8] ] ] [ { WITHOUT | WITH { CONDITIONAL | [UNCONDITIONAL] } } [ARRAY] WRAPPER] [ { KEEP | OMIT } QUOTES [ON SCALAR STRING] ] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON EMPTY] [ { ERROR | NULL | EMPTY { [ARRAY] | OBJECT } | DEFAULT expression } ON ERROR]) → jsonb","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
