MySQL LIKE IN()?

后端 未结 11 1978
时光说笑
时光说笑 2020-11-22 05:31

My current query looks like this:

SELECT * FROM fiberbox f WHERE f.fiberBox LIKE \'%1740 %\' OR f.fiberBox LIKE \'%1938 %\' OR f.fiberBox LIKE \'%1940 %\'
         


        
11条回答
  •  离开以前
    2020-11-22 06:09

    Just a little tip:

    I prefer to use the variant RLIKE (exactly the same command as REGEXP) as it sounds more like natural language, and is shorter; well, just 1 char.

    The "R" prefix is for Reg. Exp., of course.

提交回复
热议问题