Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How T-SQL Identifes Numeric values specified as String

$
0
0

I would like to get a n explanation of the behaviors of the following queries

SELECT '4' + 2 

 result : 6

Select '4' + '2'

result : 42

So how exactly sql handles the first query as an arithmetic operation and the second query as a string concatenation

 


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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