在存储过程中定义了两个字符串变量,例如@a,@b
declare @a varchar(10),@b varchar(10)
set @a='a'
set @b='b'
set @a=@a+@b 
select @a
-------------------
a
只得到'a',而非想要的'ab'。