解决方案 »

  1.   

    select regexp_substr(ip,'(\d{1,3})',1,1)*16777216
           +regexp_substr(ip,'(\d{1,3})',1,2)*65536
           +regexp_substr(ip,'(\d{1,3})',1,3)*256
           +regexp_substr(ip,'(\d{1,3})',1,4)
      from ip.table
      

  2.   

    这段写在什么地方的,Java代码中还是xml文件里
      

  3.   

    感谢@Tiger_Zhao 1楼,
    就这样轻松写出来了
    select ip,regexp_substr(ip,'(\d{1,3})',1,1)*16777216
           +regexp_substr(ip,'(\d{1,3})',1,2)*65536
           +regexp_substr(ip,'(\d{1,3})',1,3)*256
           +regexp_substr(ip,'(\d{1,3})',1,4)
      from ip.table
      

  4.   

    select ip,
    regexp_substr(IP,'(\d{1,3})',1,1)*16777216+regexp_substr(IP,'(\d{1,3})',1,2)*65536+
        regexp_substr(IP,'(\d{1,3})',1,3)*256+regexp_substr(IP,'(\d{1,3})',1,4) 
    from ip.table