2012-06-01 23 views
0

如果我有關鍵字樹,牛和鼠標如何在SQL Server中首先與多個關鍵字進行最佳匹配?

我要訂購從數據庫行時,將首先它具有最大數返回最佳匹配,如果包含在它

例如關鍵字:

  1. 牛愛鼠標和樹
  2. 鼠標是該樹

我可以這樣做嗎?

+0

您可以使用此功能:http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/counting -string-within-a-string.aspx –

+0

或者這個; http://weblogs.sqlteam.com/jeffs/archive/2004/11/02/2460.aspx - 如果遇到問題,請先試試,然後再提出更具體的問題! – dash

回答

相關問題