The oracle Jane null null problem with nvl (a, b) function to solve
Null values in oracle problem:
Expression containing null are both null, oracle in null = null!;
Use nvl (a, b) function to solve the problem of a null value:
Two expressions returned from a non-null value.
Syntax
NVL (eExpression1, eExpression2)
parameters
eExpression1, eExpression2
If the result is eExpression1 null value of the NVL () Returns eExpression2. If the calculation result is not a null value eExpression1, eExpression1 is returned. eExpression1 eExpression2 and may be any data type. If the results are all the eExpression2 eExpression1 with null value of the NVL () returns .NULL ..
Return type
character, date, time-of-date, numeric, money, logical, or a null value
described
without support null or null values insignificant, may be used of the NVL () operation to remove or calculated the null value.
select nvl(a.name,'空得') as name from student a join school b on a.ID=b.ID