SQL 分解IPv4地址
来源:互联网 发布:国产浏览器知乎 编辑:程序博客网 时间:2024/05/29 17:04
select ip,to_number(substr(ip, 1, instr(ip, '.', 1, 1)-1)) newip1,to_number(substr(ip, instr(ip,'.',1,1)+1, instr(ip, '.', 1, 2)-instr(ip,'.',1,1)-1)) newip2,to_number(substr(ip, instr(ip,'.',1,2)+1, instr(ip, '.', 1, 3)-instr(ip,'.',1,2)-1)) newip3,to_number(substr(ip, instr(ip,'.',1,3)+1, length(ip)+1-instr(ip,'.',1,3))) newip4from (select '10.1.2.123' ip from dual)
select regexp_substr(t.ip,'[^.]+',1,1), regexp_substr(t.ip,'[^.]+',1,2), regexp_substr(t.ip,'[^.]+',1,3), regexp_substr(t.ip,'[^.]+',1,4) from (select '10.1.2.123' ip from dual) t
0 0
- SQL 分解IPv4地址
- IPv4 地址
- IPV4地址
- IPv4 地址
- IPv4 地址
- 获取本地IPv4地址
- IPv4单播地址
- IPv4单播地址
- IPv4单播地址
- IPv4脏地址
- Ipv4地址配置
- 第五章:IPv4地址
- ipv4的私有地址
- IPV4 多播地址
- ipv4地址转换
- IPV4地址分类
- 获取ipv4地址
- 判断IPV4地址是否合法
- Java Note - Controlling Execution
- nyoj36
- HDU 1398
- 【牛腩】后台代码完结总结
- C++ 调用system()函数的多命令合并
- SQL 分解IPv4地址
- iOS开发多线程—01多线程简单介绍
- WebView与JavaScript的交互
- inode理解
- cmd cd 更改路径
- iOS开发多线程—02创建线程
- 宏的理解
- 遗传算法
- World Finals 2015简要题解