两个字符串相同,仍使用<>比较它们回报他们是不平等的

时间:2016-10-10 12:06:38

标签: sql sql-server tsql

我有两个<script type="text/javascript" charset="utf-8"> escapeIfModal(); LoadingScreen.start(); window.location = "/home"; </script> 个变量。我已经硬编码了其中一个的值,另一个变量通过调用存储过程获得了它的值。

当我使用NVARCHAR(MAX)打印两个变量时,我得到相同的值,但是当我使用PRINT=比较它们时,它们似乎返回不等。我不确定是什么问题?

<>

当我执行上面的EXEC语句来执行一个STORED PROCEDURE时,它使用PRINT语句来打印我们试图在变量SET @ExpectedFetchXml = '"fetch version=\"1.0\" output-format=\"xml-platform\" mapping=\"logical\" distinct=\"false\"entity name=\"testcrmentitylogicalname\"attribute name=\"TestCrmLogical1\" /attribute name=\"TestCrmLogical2\" /attribute name=\"TestCrmLogical3\" /filter type=\"and\"condition attribute=\"modifiedon\" operator=\"ge\" value=\""+ @[$Package::StartDateTime] +"\" /condition attribute=\"modifiedon\" operator=\"lt\" value=\""+ @[$Package::EndDateTime] +"\" //filter/entity/fetch>"' EXEC @ActualFetchXml = [dbo].[cp_Get_FetchXml] 'TestEntity' 中捕获的值,它显示的值与变量{{ 1}}但是当我尝试打印变量@ActualFetchXml的值时显示0,这可能是什么问题?

@ExpectedFetchXml

0 个答案:

没有答案
相关问题