SQL全文搜索

(
select dd.*,t.RANK 
from crm_CustomerAnalyzeDetails dd 
 inner join containstable(crm_CustomerAnalyzeDetails,KeyWords,'IsAbout(双子 weight(.5),string weight(.4), 认识 weight(.1) , 字符 weight(.3))',50) as t
 on dd.ID = t.[key]
 )
 union all
 (
select dd.*,t.RANK 
from crm_CustomerAnalyzeDetails dd 
 inner join containstable(crm_CustomerAnalyzeDetails,AnalyzeContent,'IsAbout(双子 weight(.5),string weight(.4), 认识 weight(.1) , 字符 weight(.3))',50) as t
 on dd.ID = t.[key]
 )
 union all
 (
select dd.*,t.RANK 
from crm_CustomerAnalyzeDetails dd 
 inner join containstable(crm_CustomerAnalyzeDetails,Strategy,'IsAbout(双子 weight(.5),string weight(.4), 认识 weight(.1) , 字符 weight(.3))',50) as t
 on dd.ID = t.[key]
 )
 ORDER BY t.RANK DESC
    

 

posted @ 2015-11-13 15:23  XCml  阅读(171)  评论(0编辑  收藏  举报