日期:2014-05-17 浏览次数:20956 次
create table t_x (name varchar2(10));
insert into t_x values('001');
insert into t_x values('002');
insert into t_x values('003');
insert into t_x values('004');
insert into t_x values('005');
commit;
select t.*
from t_x t,
(select regexp_substr('001,002,003,004', '[^,]+', 1, level) str
from dual
connect by level <= regexp_count('001,002,003,004', ',') + 1) t1
where t.name = t1.str