Oracle function NVL2 ... NVL

Source: Internet
Author: User
NVL2 (EXPR1,EXPR2,EXPR3): Memory, Nvl2 (), EXPR1 is null, 2 is the 2nd number (that is, EXPR3) returned function: If the parameter expression EXPR1 value is null, the NVL2 () function returns the value of the argument expression EXPR3 If the parameter expression expr1 value is not NULL, the NVL2 () function returns the value of the parameter expression Expr2. NVL (string1, replace_with) function: If string1 is null, the NVL function returns the Replace_with value, otherwise the value of string1 is returned, or null if two parameters are null.


-----------------

Case

Case when a= ' 1 ' and ' xxxx ' when     a= ' 2 ' then ' ssss ' else
' Zzzzz ' End as

Note the point:

1. Start with case and end With end
2. When the branch is followed by the condition, then the result is displayed
3, else in addition to the default, similar to the high-level language program switch case default, you can not add
4, END followed by alias

Oracle function NVL2 ... NVL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.