业务中多表关联,某个表的字段值作为查询条件或者判断条件,该字段需要是是以逗号相隔的值。
select * from table where id in (
select regexp_substr("字段值", '[^,]+', 1, level)
from dual
connect by regexp_substr
("字段值", '[^,]+', 1, level) is not null
)
业务中多表关联,某个表的字段值作为查询条件或者判断条件,该字段需要是是以逗号相隔的值。
select * from table where id in (
select regexp_substr("字段值", '[^,]+', 1, level)
from dual
connect by regexp_substr
("字段值", '[^,]+', 1, level) is not null
)