このクエリを変更して、単語が 2 つしか離れていないキーワードを検索するにはどうすればよいですか?
select id, SubjectText from dbo.email  where contains
 ([ContentText],'execute NEAR class near program near code near SQL');
行く
これらは私が得ている結果です:
id  SubjectText
1   examples for you 
3   Oracle classes starting soon 
4   Toms Hardware nes letter 
5   Registration starts soon  
7   Dreamspark SQL order  ready  
8   SQL classes free online  
10  Visual Basic key  
20  SQL Help   
21  A Free SQL Server Monitoring Package  
22  A Monitoring Package  
試してみました:-
select id, SubjectText
from dbo.email
where contains (ContentText,
                'NEAR ((execute, class , program, SQL ,code),2,true)'
               );
しかし、エラーが発生しますMsg 7630, Level 15, State 2, Line 2 Syntax error near '(' in the full-text search condition 'NEAR ((execute, class , program, SQL ,code),2,true)'; 
私が試してみました
select id, SubjectText from dbo.email where contains ([ContentText],'"( (近くのクラス、近くのプログラム、近くのコード、近くの SQL ))"',2,true); 行く
と
select id, SubjectText from dbo.email where contains ([ContentText],'near( (execute , class, program code, SQL ))',2,true); 行く
と
select id, SubjectText from dbo.email where contains ([ContentText],' (SQL 近くのプログラム NEAR コード近くのクラス近くで実行)',2,true); 行く
それらのどれも機能しませんそれらはすべてエラーを生成します助けてください