How to use like condition with multiple values in sql server 2005?

前端 未结 5 1771
醉酒成梦
醉酒成梦 2021-01-11 19:36

I need to filter out records based on some text matching in nvarchar(1000) column. Table has more than 400 thousands records and growing. For now, I am using Like condition:

5条回答
  •  春和景丽
    2021-01-11 20:27

    Have a look at LIKE on msdn.

    You could reduce the number filters by combining more details into a single LIKE clause.

    SELECT 
        *
    FROM
        table_01
    WHERE
        Text like '%[ABCD]1%'
    

提交回复
热议问题