{"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","derived_content_hash":"ae1645337082a17a815d73c7d517d68d4a0c979aeb4d8d47310a1982b4a6dfe8","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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:fc79dc51591dfd8c00e8bf22d3338865bee2c8e6a7131c7f8f75e26d16398e70","receipt_sha256":"c5177ed77312697a907fef87a86c038a21944a9209f81c0759944f3d06183c7e","repair":"wiki-repair-20261023"},"signature":"COALESCE(value [, ...])","signature_count":1,"slug":"coalesce","source_rev":"wiki-repair-20261023:02fba6f7ad196d7adce333f6f565f49ef07713bc19ac1f060502331bb2cd0db2","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":"wiki-repair-20261023:02fba6f7ad196d7adce333f6f565f49ef07713bc19ac1f060502331bb2cd0db2","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":"COALESCE 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","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":"COALESCE 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","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":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-conditional.html","sha256":"d64886927461000afd7c15ad2f1983cd4a12f85a8207144d9f72a6668d65132f"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-COALESCE-NVL-IFNULL","file":"functions-conditional.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"coalesce","SourceDatabase":"center","Version":"18","Locale":"en","Title":"COALESCE","Summary":"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:","BodyHTML":"The \u003ccode\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:","SourceRevision":"wiki-repair-20261023:02fba6f7ad196d7adce333f6f565f49ef07713bc19ac1f060502331bb2cd0db2","ContentHash":"04b5659d4e9f6346b05e8440ee5c184dc11d03e81600cd3209b4ea648f73fbba","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:","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":"COALESCE 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","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":"same-version-pgdoc"}]}},"RequestedLocale":"en","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":"COALESCE 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","description_zh_html":"\u003ccode class=\"function\"\u003eCOALESCE\u003c/code\u003e 函数返回参数中第一个不为 null 的值。只有所有参数都为 null 时，才返回 null。它常用于在检索数据以供显示时，用默认值替换 null 值。例如：","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":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
