oracle 判断字段中是否包含指定的字符
select * from 表 where instr(','||判断的字段||',',',指定的值,')>0
mybatis :
select * from 表 where instr(','||判断的字段||',',concat(concat(',', #{userId}), ',')) >0
select * from 表 where instr(','||判断的字段||',',',指定的值,')>0
mybatis :
select * from 表 where instr(','||判断的字段||',',concat(concat(',', #{userId}), ',')) >0