{"Entry":{"collection":"func","key":"json-exists","name":"JSON_EXISTS","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":"83af3e19394441402295402212c26a63e8c961b8cbdfb976629739b5d443c91a","first_version":"17","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-27T17:57:28.819981+08:00","last_version":"20","name":"JSON_EXISTS","name_key":"json_exists","position":16010,"present_in":["17","18","19","20"],"signature":"JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean","signature_count":1,"slug":"json-exists","source_rev":"b7bd9cda","summary":"Returns true if the SQL/JSON path_expression applied to the context_item yields any items, false otherwise.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-exists","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-exists","SourceRevision":"b7bd9cda","Facts":{"description":"Returns true if the SQL/JSON path_expression applied to the context_item yields any items, false otherwise.","description_html":"Returns true if the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e applied to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e yields any items, false otherwise.","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 true if the SQL/JSON path_expression applied to the context_item yields any items, false otherwise.","description_html":"Returns true if the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e applied to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e yields any items, false otherwise.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eJSON_EXISTS\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\"\u003eTRUE\u003c/code\u003e | \u003ccode class=\"literal\"\u003eFALSE\u003c/code\u003e |\u003ccode class=\"literal\"\u003e UNKNOWN\u003c/code\u003e | \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e } \u003ccode class=\"literal\"\u003eON ERROR\u003c/code\u003e\u003c/span\u003e]) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-SQLJSON-QUERYING","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-exists","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"JSON_EXISTS","Summary":"如果将 SQL/JSON path_expression 应用于 context_item 后产生了任何项，则返回 true，否则返回 false。","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 后产生了任何项，则返回 true，否则返回 false。\u003cpre\u003eJSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean\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 后产生了任何项，则返回 true，否则返回 false。","SourceRevision":"ca936764","ContentHash":"d4a44bc652de1b9cc69a73e54ee337eda05f7c61a206be19ba86784d452f544d","Payload":{"description_zh":"如果将 SQL/JSON path_expression 应用于 context_item 后产生了任何项，则返回 true，否则返回 false。","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 后产生了任何项，则返回 true，否则返回 false。","signatures":[{"description_zh":"如果将 SQL/JSON path_expression 应用于 context_item 后产生了任何项，则返回 true，否则返回 false。","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 后产生了任何项，则返回 true，否则返回 false。","returns":"boolean","text":"JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean","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":"56c37f4899508f79dba832b6e8be0b475853bd3bf742eb856502174a54d226fc","Text":"JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean","Returns":"boolean","Payload":{"description":"Returns true if the SQL/JSON path_expression applied to the context_item yields any items, false otherwise.","description_html":"Returns true if the SQL/JSON \u003cem class=\"replaceable\"\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e applied to the \u003cem class=\"replaceable\"\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e yields any items, false otherwise.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eJSON_EXISTS\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\"\u003eTRUE\u003c/code\u003e | \u003ccode class=\"literal\"\u003eFALSE\u003c/code\u003e |\u003ccode class=\"literal\"\u003e UNKNOWN\u003c/code\u003e | \u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e } \u003ccode class=\"literal\"\u003eON ERROR\u003c/code\u003e\u003c/span\u003e]) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"JSON_EXISTS ( context_item, path_expression [PASSING { value AS varname } [, ...]] [{ TRUE | FALSE | UNKNOWN | ERROR } ON ERROR]) → boolean","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
