应为有空格!declare @str varchar(100)
select @str='123'
select @str=@str+'456'
print @str或:declare @str char(100)
select @str='123'
select @str=rtrim(@str)+'456'
print @str
select @str='123'
select @str=@str+'456'
print @str或:declare @str char(100)
select @str='123'
select @str=rtrim(@str)+'456'
print @str
select @str='123'
select @str=@str+'456'
print @str
select @str='123'
select @str=ltrim(rtrim(@str))+'456'
print @str