sql一行拆分成多行 oracle一行拆成多行
首先,创建spilt方法,然后调用它。1--create function create error partition(PuListVarchar2,PuSepVarchar2:=“,”)retur
首先,创建spilt方法,然后调用它。1--create function create error partition(PuListVarchar2,PuSepVarchar2:=“,”)returntypeuSplitPipelineDisluIdxplsuIntegervuListVarchar2(50):=PuListBeginLoopluIdx:=instr(vuList,PuSep)iflux>0thenpiperow(substr(vuList,1,luIdx-1))vuList:=substr(vuList,lidx length(Pux)sep elseppeRow(vux list)退出IfendLoopReturnEndSplit 2。选择*fromtable(拆分(“Cao XX,Zhong XX”)