Use SOUNDEX() word by word on SQL Server

前端 未结 5 1597
青春惊慌失措
青春惊慌失措 2020-12-31 23:59

Here is my problem. For example I have a table Products that contains a field, Name:

Products
ID | Name | ..
1  | \"USB Key 10Go\"
2  | \"I         


        
5条回答
  •  -上瘾入骨i
    2021-01-01 00:10

    Have you looked into the Full-Text Search feature in SQL Server? I know this is not exactly what you asked for. Its just that the SOUNDEX() function is used to find similar SOUNDING names (EX: SMITH and SMYTHE sound the same). In a search engine, however, how a word sounds is less important than the search words themselves. Full-Text Search also lets you use synonyms (allowing you to specify certain words that mean the same thing within your application's context), and have them automatically considered during your search.

    Look at these pages for more information about Full Text Search in SQL Server:

    Introduction to Full-Text Search

    CONTAINS

    CONTAINSTABLE

    FREETEXT

    FREETEXTTABLE

提交回复
热议问题