select * from member where FIND_IN_SET(id,'1,2,3,4,5');
使用find_in_set函数一次返回多条记录id 是一个表的字段 然后每条记录分别是id等于1,2,3,4,5的时候
有点类似in (集合)
select * from member where id in (1,2,3,4,5);
select * from member where FIND_IN_SET(id,'1,2,3,4,5');
使用find_in_set函数一次返回多条记录select * from member where id in (1,2,3,4,5);