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

前端 未结 5 1780
醉酒成梦
醉酒成梦 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:06

    SELECT 
        *
    FROM
        table_01
    WHERE
        Text like '%[A-Z]1%'
    

    This will check if the texts contains A1, B1, C1, D1, ...

    Reference to using the Like Condition in SQL Server

提交回复
热议问题