且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在数据库的逗号列表中查找特定值

更新时间:2022-11-14 12:08:55

使用

Use FIND_IN_SET() to find the records that contain your user

select *
from your_table
where find_in_set('MTNOfficial', usersBought) > 0