In mysql I have this table:
id types_id
1 ["1","2"]
2 ["1","2","3"]
3 ["2","3"]
...
I wanna use REGEXP
to get all rows that contain "3"
at types_id
json
您不需要正则regexp
,只需使用like
。
where types_id like '%"3"%'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.