0
点赞
收藏
分享

微信扫一扫

MySQL 字段 LIKE 多个值

丹柯yx 2022-12-22 阅读 138


比如需要这样的效果:

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

可以使用 REGEXP 写成:

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

References:

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

举报

相关推荐

0 条评论