nvl equivalent in uvsh
Posted: Fri Jan 02, 2009 9:09 am
Is there any nvl equivalent function to use in select queries of uvsh. Basically want to replace all null with an empty string.
Code: Select all
EVAL "IF ISNULL(column) THEN '' ELSE column"
I have a similar usage in select query involving convert as well. Something like thisray.wurlod wrote:Code: Select all
EVAL "IF ISNULL(column) THEN '' ELSE column"
Code: Select all
select EVAL "CONVERT(@TM:@VM,'.', Field1,Field2,Field3) from H_TABLE;
Code: Select all
select EVAL "CONVERT(@TM:@VM,'.', If Isnull(Field1) then '' else Field1,If Isnull(Field2) then '' else Field2, If Isnull(Field3) then '' else Field3) from H_TABLE;