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
    
相關文章
相關標籤/搜索