6、ined--管道函数关键字isl_idxpls_integer;v_listvarchar2(50):=p_list;beginloopl_idx:=instr(v_list,p_sep);ifl_idx>0thenpiperow(substr(v_list,1,l_idx-1));v_list:=substr(v_list,l_idx+length(p_sep));elsepiperow(v_list);exit;endif;endloop;return;endsplit;--测试改管道函数是否正确select column_value from table(s
7、plit('Hello,Cnblogs!',','));--在存储过程调用运用该管道函数createorreplaceprocedureprc(paraoutvarchar2)isvar_outvarchar2(200);var_splittype_split;begin--调用方式一输出拆分的字符串forpin(select column_value from table(split('Hello,Cnblogs!',',')))loopvar_out:=var_out