SQL Prefix issue N with variable

前端 未结 2 942
囚心锁ツ
囚心锁ツ 2021-01-28 14:21
DECLARE @XML_VC_8 XML;
DECLARE @string NVARCHAR(MAX);
DECLARE @PreFix NVACHAR(MAX);

SET @PreFix =\'N\' 
SET @XML_VC_8 = \'

        
2条回答
  •  猫巷女王i
    2021-01-28 14:54

    removing the N variable and changing encoding to utf-16, this should get your characters

    Declare @XML_VC_8 XML;
    Declare @string nvarchar(max);
    
    
    set @XML_VC_8 = N'fdff مرحبا';
    set @string=Convert(nvarchar(max),@XML_VC_8);
    print @string
    

提交回复
热议问题