gpt4 book ai didi

sql-server - SQL Mgmt 和 CFQuery 中的查询结果不同

转载 作者:行者123 更新时间:2023-12-02 17:29:36 26 4
gpt4 key购买 nike

在 SQL Management Studio 中执行以下查询会提供结果,而通过 cfquery 则不会...

select distinct locationid, locationname, locationaliasname
from vwLocationsWithAlias
where 1 = 0
or (LocationName = N'the' or LocationAliasName = N'the')
or (LocationName = N'the republic' or LocationAliasName = N'the republic')

SQL Mgmt Studio 返回预期结果,但 CFQuery 未返回任何内容。 WTF!?

最佳答案

在从 Coldfusion 发送查询时运行 Profiler,看看它是否发送了您期望的内容。

关于sql-server - SQL Mgmt 和 CFQuery 中的查询结果不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2677246/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com