Why following expression returning 1 even we already assign value to variable @myVariable ?DECLARE @myVariable AS varchar = 'abc';DECLARE @myNextVariable AS char = 'abc';--The following returns 1SELECT DATALENGTH(@myVariable), DATALENGTH(@myNextVariable);GO
↧