I can use the regex comparing a comma delimited list of GUID against a column that is a string, but I am having trouble doing it with an integer like the one below. Am I doing something wrong or is this not possible?
select * from sims_role where organization_id REGEXP '4929,4930'
Perhaps you want:
select * from sims_role where organization_id REGEXP '^(4929|4930)$'
What you've used is identical to:
select * from sims_role where organization_id LIKE '%4929,4930%'
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.