Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Data Type for a REPLACE statement

$
0
0

Hi,

May I know what is the data type of this query after REPLACE is applied? Date or string?

declare @date as datetime2(0)
set @date = '2013-10-13 23:54:02.32365'

print replace(convert(date, @date, 112), '-', '')


cherriesh


Viewing all articles
Browse latest Browse all 15264

Trending Articles



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