1
如果我們想檢索columnName不包含「thisWord」的所有關鍵字,下面的查詢的搜索條件是什麼?如何實現NOT LIKE作爲containstable(全文查詢)的搜索條件?
SELECT [key] AS someValue
FROM CONTAINSTABLE (table ,columnName, ??what goes here??)
注意:這是一個基於全文的搜索。
如果我們想檢索columnName不包含「thisWord」的所有關鍵字,下面的查詢的搜索條件是什麼?如何實現NOT LIKE作爲containstable(全文查詢)的搜索條件?
SELECT [key] AS someValue
FROM CONTAINSTABLE (table ,columnName, ??what goes here??)
注意:這是一個基於全文的搜索。
我想:
SELECT
[key]
FROM tableName
LEFT JOIN CONTAINSTABLE (tableName ,columnName, '') AS ct ON tableName.[key] = ct.[key]
WHERE tc.[key] IS NULL