mysql in 关键字的sql脚步用法FIND_IN_SET

mySQL在in中传入参数类型问题

使用 FIND_IN_SET(id, '1,2,3,4') 函数,

也就是说将

select * from table where id in '1,2,3' 

改为

 select * from table where FIND_IN_SET(id, '1,2,3')
posted @ 2020-05-21 11:00  Mark.Yang  阅读(400)  评论(0)    收藏  举报