Just need your help here.
I have a table T
A (nvarchar) B()
--------------------------
'abcd'
'xyzxcz'
B should output length of entries in A for which I did
UPDATE T
SET B = LEN(A) -- I know LEN function returns int
But when I checked out the datatype of B using sp_help T
, it showed column B as nvarchar
.
What's going on ?
select A
from T
where B > 100
also returned correct output?
Why is nvarchar
working with logical operators ?
Please help.