{"Entry":{"collection":"func","key":"coalesce","name":"COALESCE","aliases":[],"metadata":{"changed_in":["7.3"],"changes":[{"descriptions_changed":true,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":["COALESCE(value [, ...])"],"removed":["COALESCE(value[, ...])"]},"status":"changed","to":"7.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"8b123c491e23538845ef91c3ceb7faa4217d018aae34ba0fa4568b27724e8d72","first_version":"7.1","group":"conditional","group_label":"Conditional Expressions","groups":["conditional"],"imported_at":"2026-09-27T17:57:28.852759+08:00","last_version":"20","name":"COALESCE","name_key":"coalesce","position":18000,"present_in":["7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"COALESCE(value [, ...])","signature_count":1,"slug":"coalesce","source_rev":"b7bd9cda","summary":"The COALESCE function returns the first of its arguments that is not null.","summary_zh":""}},"Definition":{"Collection":"func","Key":"coalesce","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"coalesce","SourceRevision":"b7bd9cda","Facts":{"description":"The COALESCE function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_html":"The \u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-COALESCE-NVL-IFNULL","file":"functions-conditional.html","slug":"18"},"group":"conditional","group_label":"Conditional Expressions","lang":"en","layout":"table-new","pages":["functions-conditional.html"],"prose_only":false,"signatures":[{"description":"The COALESCE function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_html":"The \u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e(\u003cem class=\"replaceable\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e])","returns":"","text":"COALESCE(value [, ...])","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-COALESCE-NVL-IFNULL","file":"functions-conditional.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"coalesce","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"COALESCE","Summary":"COALESCE函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","BodyHTML":"\u003ccode\u003eCOALESCE\u003c/code\u003e函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：\u003cpre\u003eCOALESCE(value [, ...])\u003c/pre\u003e\u003ccode\u003eCOALESCE\u003c/code\u003e函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","SourceRevision":"ca936764","ContentHash":"ac4f21c4485a035d5eb74b2497526fe2288fe25c4f89aab08ab2ba33aa527a0f","Payload":{"description_zh":"COALESCE函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","signatures":[{"description_zh":"COALESCE函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","returns":"","text":"COALESCE(value [, ...])","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"1555b7e92cd660b03011a2d31977da5de7dbd1cffdfc21e7e6839225bf0f5261","Text":"COALESCE(value [, ...])","Returns":"","Payload":{"description":"The COALESCE function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_html":"The \u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e function returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display, for example:","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e(\u003cem class=\"replaceable\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e [\u003cspan class=\"optional\"\u003e, ...\u003c/span\u003e])","returns":"","text":"COALESCE(value [, ...])","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
