如果我们想要检索columnName不包含“thisWord”的所有密钥,下面的查询的搜索条件是什么?
SELECT [key] AS someValue
FROM CONTAINSTABLE ( table ,columnName, ??what goes here?? )
注意:这是一个基于全文的搜索。
答案 0 :(得分:4)
我想:
SELECT
[key]
FROM tableName
LEFT JOIN CONTAINSTABLE ( tableName ,columnName, '' ) AS ct ON tableName.[key] = ct.[key]
WHERE tc.[key] IS NULL