A plurality of field values MySQL LIKE

Copyright: https://blog.csdn.net/Dongguabai/article/details/91039840

For example, the need for such effects:

select * from user where name like '%四%' or name like '%五%'

You can use REGEXP written as:

select * from user where name regexp '四|五'

References:

https://www.runoob.com/mysql/mysql-regexp.html

Guess you like

Origin blog.csdn.net/Dongguabai/article/details/91039840