不是SQL专家,但我到目前为止:)
我有一个工作查询,我很乐意从RANK
获得{ - 1}}因此需要使用CONTAINSTABLE
代替CONTAINS
。
如何将此查询转换为两个结果合并的RANK
结果?
SELECT *
FROM [dbo].[prov] AS [Extent1]
WHERE (CONTAINS(([Name]), '"test*"')) OR ( EXISTS (SELECT
1 AS [C1]
FROM [dbo].[pv] AS [Extent2]
INNER JOIN [dbo].[bin] AS [Extent3] ON [Extent3].[Id] = [Extent2].[tb_Id]
WHERE ([Extent1].[Id] = [Extent2].[tp_id]) AND (CONTAINS([Extent3].[Name], '"test*"'))))