Use of contains() in sql server

后端 未结 2 1146
北恋
北恋 2021-01-11 14:47

I am having a table name Product contains 3 columns as:

Product-id
name
Price

In name column, all product names a

相关标签:
2条回答
  • 2021-01-11 15:39

    select * from product where FREETEXT (product.,'"1340"')

    0 讨论(0)
  • 2021-01-11 15:40

    Here is straight way to do this . you can use "*" before in contain syntax same as like operator . but you need to use double quote before and after the search string . check following query :

    SELECT *
    FROM product
    WHERE CONTAINS(name,'"*1340*"');
    

    it will definitely work .

    0 讨论(0)
提交回复
热议问题