日期:2014-05-17 浏览次数:20871 次
s1 := ','
------解决方案--------------------
'01,02,03'
------解决方案--------------------
',';
for c in select * from B where s1 like '%,'
------解决方案--------------------
vertype
------解决方案--------------------
',%'
loop
s1 := replace(s1,','
------解决方案--------------------
c.vertype
------解决方案--------------------
',' , ','
------解决方案--------------------
c.vervalue
------解决方案--------------------
',');
end loop;
s1 := substr(s1, 2, length(s1)-2);
WITH a AS(
SELECT '01,' AS vertype FROM dual UNION
SELECT '01,02' AS vertype FROM dual UNION
SELECT '01,02,03' AS vertype FROM dual UNION
SELECT '01,03' AS vertype FROM dual