---
title: "Oracle中NVL2()函数"
author: "wing123"
date: "2011-02-23T14:10:06Z"
tags: ["Oracle"]
categories: ["企业架构"]
slug: "oracle-nvl2"
draft: false
lastmod: "2011-02-23T14:10:06Z"
id: 919380
url: "https://wing123.iteye.com/blog/919380"
---

NVL2 (expr1, expr2, expr3) -&gt;expr1不为NULL，返回expr2；为NULL，返回expr3。expr2和expr3类型不同的话，expr3会转换为expr2的类型