当前位置: 代码迷 >> Sql Server >> 字符连接有关问题
  详细解决方案

字符连接有关问题

热度:101   发布时间:2016-04-27 12:40:49.0
字符连接问题!
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 @[email protected]
  相关解决方案