select * from NN_TEST t
where instr(',' ------解决方案-------------------- NN_VALUE ------解决方案-------------------- ',',',2,')>0;
------解决方案-------------------- 逗号分割的。
那么可以
select * from NN_TEST t
WHERE instr(NN_VALUE, '2,')>0 ------解决方案--------------------
很妙啊。
with t(str) as (
select '33,22,2' from dual
union
select '2,32,42' from dual
union
select '222,2222,22' from dual
)
select str,regexp_instr(str,'^[2], ------解决方案-------------------- ,[2]$') from t order by str ;