How do I make wildcards work in a like operator in SQL Server reporting services?

前端 未结 4 1798
孤街浪徒
孤街浪徒 2021-01-04 08:27

I have added a filter expression using the like operator. What do I put in the value field? my parameter is named @test and I\'d like the filter to function as a like %@te

4条回答
  •  一向
    一向 (楼主)
    2021-01-04 09:00

    you could use this simple query.

    WHERE fieldname LIKE CONCAT('%',@test,'%')
    

    Used CONCAT

提交回复
热议问题