TIP: Some functions that can be used for NULL values

zhaozj2021-02-16  58

NVL (expr1, expr2)

NVL2 (expr1, expr2, expr3)

NULLIF (expr1, expr2)

Coalesce (expr1, expr2, ..., exprn)

NVL Converts a Null Value to an Actual Value

NVL2 IF EXPR1 IS NOT NULL, NVL2 RETURNS EXPR2. IF EXPR1 IS NULL, NVL2 RETURNS EXPR3. The Argument Expr1can Have Any Data Type.

Nullif Compares Two Expressions And Returns Null If They Are Equal, or The First Expression If They Are Not Equal

Coalesce Returns The First Non-Null Expression in The Expression List

转载请注明原文地址:https://www.9cbs.com/read-22201.html

New Post(0)