日期:2014-05-18  浏览次数:20396 次

字符连接问题!
SQL code
declare @str nvarchar(50)
declare @t nvarchar(10)
set @str='hello world!'
set @t='你好'


要求结果为:"hello world!-你好"怎么做


------解决方案--------------------
SQL code

declare @str nvarchar(50)
declare @t nvarchar(10)
set @str='hello world!'
set @t='你好'
PRINT @str + '-' + @t

------解决方案--------------------
SQL code
declare @str nvarchar(50)
declare @t nvarchar(10)
set @str='hello world!'
set @t='你好'
select @str+'-'+@t