Quantcast
Channel: IsNull Question
Viewing all articles
Browse latest Browse all 9

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 all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>