0
我有这个存储过程做全文索引搜索与INFLECTIONAL支持。 下面的代码似乎有两个单词抛出错误消息的问题。多字全文索引搜索 - sql
没有错误
INNER JOIN CONTAINSTABLE (ProductRequest, (Abstract , Cause , Description), 'FORMSOF(INFLECTIONAL,''emailaddress'') OR ''windowsproduct''') AS KEY_TBL
语法错误
//Note the white space in email address
INNER JOIN CONTAINSTABLE (Table2, (Abstract , Cause , Description), 'FORMSOF(INFLECTIONAL,''email address'') OR ''windowsproduct''') AS KEY_TBL
//Msg 7630, Level 15, State 3, Line 1
//Syntax error near 'ddress'' in the full-text search condition 'FORMSOF(INFLECTIONAL,'emaila ddress') OR 'windowsproduct''.
//Note the white space at the end of email address
INNER JOIN CONTAINSTABLE (Table2, (Abstract , Cause , Description), 'FORMSOF(INFLECTIONAL,''emailaddress '') OR ''windowsproduct''') AS KEY_TBL
//Msg 7630, Level 15, State 3, Line 1
//Syntax error near ''' in the full-text search condition 'FORMSOF(INFLECTIONAL,'emailaddress ') OR 'windowsproduct''.
能有人告诉我正确的语法?
我找到了答案。在关键字中使用双引号(“)而不是单引号 – mercu