{"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","derived_content_hash":"b7b4ddf91dbb641e3633fcb211843148bd5ea276aa1c90b035aafc48309523f7","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:02c6c712a910f0ee6c8d5f038f31439bb97a23f2727eabc5453bac8ec382bbac","versions":{"17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"2ec6fc3c71a3354c5136ce459ef4bd5b0b5d2a826ba7824414f24e7890638508","repair":"wiki-repair-20261023"},"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":"wiki-repair-20261023:02c6c712a910f0ee6c8d5f038f31439bb97a23f2727eabc5453bac8ec382bbac","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":"wiki-repair-20261023:02c6c712a910f0ee6c8d5f038f31439bb97a23f2727eabc5453bac8ec382bbac","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":"如果将 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。","doc":{"anchor":"FUNCTIONS-SQLJSON-QUERYING","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","version":"18.7"},{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"31b98fa7f00387abf441728c31918bfe8b368642bceeb8bba88a73c3fbd607de","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"json","group_label":"JSON 函数和操作符","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":"如果将 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。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-json.html","sha256":"a412feb14a229f1d9f14fa2d7735255aa297d5eb8f2971d744d9dfee659c7cca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-SQLJSON-QUERYING","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-exists","SourceDatabase":"center","Version":"18","Locale":"en","Title":"JSON_EXISTS","Summary":"Returns true if the SQL/JSON path_expression applied to the context_item yields any items, false otherwise.","BodyHTML":"Returns true if the SQL/JSON \u003cem\u003e\u003ccode\u003epath_expression\u003c/code\u003e\u003c/em\u003e applied to the \u003cem\u003e\u003ccode\u003econtext_item\u003c/code\u003e\u003c/em\u003e yields any items, false otherwise.","SourceRevision":"wiki-repair-20261023:02c6c712a910f0ee6c8d5f038f31439bb97a23f2727eabc5453bac8ec382bbac","ContentHash":"078aa66b9ac979351735614e6acae912aa10a996cd61177406b0d34ddc9f019e","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.","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":"如果将 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。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"如果将 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。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
