'LIKE ('%this%' OR '%that%') and something=else' not working

前端 未结 7 1399
南方客
南方客 2020-12-15 14:53

I have a select query where I am trying to search strings for multiple patterns

LIKE (\'%this%\' or \'%that%\' ) and something=else

Returns

7条回答
  •  半阙折子戏
    2020-12-15 15:41

    Have you tried:

    (column LIKE '%this%' and something=else) or (column LIKE '%that%' and something=else)
    

提交回复
热议问题