Null Value [message #375073] |
Tue, 24 July 2001 02:53 |
Neil Fairweather
Messages: 3 Registered: July 2001
|
Junior Member |
|
|
What is the code in ANSI SQL to replace a null value? I believe it is NVL but I do not know how to use it.
Thanks,
Neil Fairweather
|
|
|
Re: Null Value [message #375076 is a reply to message #375073] |
Tue, 24 July 2001 04:19 |
Cindy
Messages: 88 Registered: November 1999
|
Member |
|
|
NVL (expr1, expr2)
where: expr1 is the source value or expression that may contain null
expr2 is the target value for converting null
Here is an example:
select NVL(sal,0),
NVL(hiredate, '24-JUL-01'),
NVL(job, 'No Job yet'),
NVL(ename, ' '),
comm
from emp;
|
|
|