我有一個文本,SQL檢查文本所包含的單詞
'Me and you against the world' // false
'Can i have an email address' // true
'This is an' // true
'an' //true
我想查這個詞an
是否是我的字符串中。
如何檢查文本是否包含SQL中的特定單詞?我無法添加全文目錄。 Otherwies我可以
SELECT * FROM TABLE WHERE CONTAINS(Text, 'an')
其中相同的列「%的%」 – jarlh 2015-04-01 08:58:07
@jarlh - 我添加不適合%的% – fubo 2015-04-01 09:35:04
當然...其中'一個例子||列|| ''就像'%an%'。 (其中||是ANSI SQL concat,SQL Server可能有一個concat函數?) – jarlh 2015-04-01 09:49:41