The following articles mainly introduce Oracle Nvl functions. Oracle Nvl functions are often used in practical applications. The following article will be meaningful to you. I hope it will help you in this regard.
Nvl () function
Returns a non-null value from two expressions.
Syntax
- NVL(eExpression1, eExpression2)
Parameters
- eExpression1, eExpression2
If the calculation result of eExpression1 is null, NVL () returns eExpression2. If the calculation result of eExpression1 is not null, eExpression1 is returned. EExpression1 and eExpression2 can be any data type.
If both eExpression1 and eExpression2 are null values, NVL () returns. NULL ..
Oracle Nvl function: Return Value Type
Numeric, currency, logical, or null
Description
If null or null values are not supported, you can use NVL () to remove null values in the calculation or operation.
- Select nvl (a. name, 'blank ') as name from student a join school B on a. ID = B. ID
Note: The two parameters must be of the same type.
The above content is an introduction to the Oracle Nvl function. I hope you will get some benefits.