plsql中如何截取第三个‘.’前面的字符串?

2025年03月23日 16:23
有1个网友回答
网友(1):

用instr函数定位第三个“.”的位置,使用substr进行截取。比如select substr('ip地址',1,instr('ip地址','.',1,3)-1) from dual;