oracle 判断字段中是否包含指定的字符

select * from 表 where instr(','||判断的字段||',',',指定的值,')>0

mybatis :

select * from 表 where instr(','||判断的字段||',',concat(concat(',', #{userId}), ',')) >0

posted @ 2019-11-22 13:34  苹果也是梨  Views(5499)  Comments(0)    收藏  举报