oracle分割字符串split 请问如何在Oracle中截取第一个逗号和第二个逗号之间的字符串?

请问如何在Oracle中截取第一个逗号和第二个逗号之间的字符串?Substr(string,start position,truncation number)使用上述函数完成判断如果是查询select

请问如何在Oracle中截取第一个逗号和第二个逗号之间的字符串?

Substr(string,start position,truncation number)

使用上述函数完成判断

如果是查询

selectcasesubstr(field,1,1)

when“,”then Substr(field,2,length(field)-1)

else field

endas field name

from table

在Oracle中,可以使用connect by进行除法字符串井:例如,定义字符串:PVuNouList:=“23,34,45,56”选择不同的REGEXPuSubStr(PVuNouList,“[^,]”,1,LEVEL)作为来自DUALCONNECT的“token”,由REGEXPuSubStr(PVuNouList,“[^,]”,1,LEVEL)不为null按1顺序返回结果:token23344556

Oracle“,,,,,,,;,,,”分别取输出双精度字符串中第一个逗号

ect substr(string,instr(string,“,”,1)1,instr(string,“,”,instr(string,”,“,1)1)-instr(string,“,”,1)-1)之间的字符