Quantcast
Channel: IsNull Question
Viewing full articles (9 articles)
Browse article index
↧

IsNull Question

$
0
0

Levi:

 

If you are wanting to use "isnull" you might also be able to do something like:

 

Code Snippet

isnull (cast(theValue as varchar), '--')

 

 

like for instance in:

 

Code Snippet

select isnull (cast(theValue as varchar), '--')
       as convertedValue
  from ( select 14 as theValue union all
         select null
       ) a

 

/*
convertedValue                
------------------------------
14
--
*/

 

↧

Viewing full articles (9 articles)
Browse article index

Latest Images

Trending Articles



Latest Images