I have a Table application in which there is a column
BORROWINGTERM NUMBER(10,0) Nullable
why does this script throw an error (invalid ORA-01722 number)
select nvl(borrowingterm, 'no term') from Application
while this one works
select nvl(to_char(borrowingterm), 'no term') from Application
and it also works
select nvl(1234,5678) from dual;
base of this article
the first parameter of the NVL function must be a string type
source share