Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Assign empty string '' if datetime is null

$
0
0

 

hi all,

 

may i know how to assign '' (empty string) for a varible is null which type is datetime?

 

example:

select EnterTime from LoginTable

 

if the EnterTime is null, this query will return

 

NULL

 

but right now, i need to get ' ' not NULL.

 

any idea?

 

thanks 1st


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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