日期:2014-05-16 浏览次数:20756 次
select user_name, user_id, sum(vla_1), sum(vla_2), sum(vla_3) from M student t WHERE t.stuid IN (SELECT substr(t1.str, instr(t1.str, ',', 1, LEVEL) + 1, decode(instr(t1.str, ',', 1, LEVEL + 1), 0, length(str) + 1, instr(t1.str, ',', 1, LEVEL + 1)) - instr(t1.str, ',', 1, LEVEL) - 1) s FROM dual, t1 CONNECT BY LEVE