以下是我的列数据:
表名:员工
id path 1 1,5,8,9,6,32,3
现在我需要Regexp查询,如果Path列中存在特定数字,它将返回true。
发布于 2019-05-21 17:36:36
SELECT * FROM `Employee` WHERE `path` REGEXP '(^|,)(1|5|8|9|6|32|3)(,|$)'
尝尝这个。
https://stackoverflow.com/questions/56235036
相似问题