Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用正则表达式将 GUID 的逗号分隔列表与作为字符串的列进行比较,但我无法使用如下所示的整数来进行比较。我做错了什么还是不可能?
select * from sims_role where organization_id REGEXP '4929,4930'
也许你想要:
select * from sims_role where organization_id REGEXP '^(4929|4930)$'
您使用的内容与以下内容相同:
select * from sims_role where organization_id LIKE '%4929,4930%'