【发布时间】:2014-06-15 17:28:30
【问题描述】:
我有以下在技术上应该是等效的查询:
第一
select Product_ID from ProductSearchIndexData psid
where Product_ID = 946 and contains(psid.[Text], '("exp*")')
第二
SELECT [key] as Product_ID, rank
FROM CONTAINSTABLE(ProductSearchIndexData, [Text], '("exp*")')
where [key]= 946
第一个返回正确的结果,而另一个没有返回。
这里有什么我遗漏的吗?
谢谢!
【问题讨论】:
-
您确定 Product_ID 是表的主键吗? (也许是个愚蠢的问题,但我没有其他想法)
标签: sql sql-server-2012 full-text-search contains containstable