使用oracle提供的regexp_substr()函数,对将IPV4地址分成4段: select v.ip as ip_address, regexp_substr(v.ip,,) as A, regexp_substr(v.ip,,) as B, regexp_substr(v.ip,,) as C, regexp_substr(v.ip,,) as D from (select '192.168.253.183' as ip from dual) v 结果如下: -------------