MySQL LIKE IN()?

后端 未结 11 1894
时光说笑
时光说笑 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:00

    You can use like this too:

    SELECT * FROM fiberbox WHERE fiber IN('140 ', '1938 ', '1940 ')
    

提交回复
热议问题