关于一个Oracle简单的SQL拼接问题 oraclesql 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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 这段写在什么地方的,Java代码中还是xml文件里 感谢@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 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 oracle中复杂索引的问题 存储过程中的时间查询问题 关于Oracle 触发器的问题 如何启动数据库 请教一个比较笨的问题 数据库每日更新,应如何用SELECT语句提取前第七天那一天的数据? 一个ORACLE日期格式问题,在线等待!!!! 下面的过程编译时出错,不知是什么原因,请帮帮忙,谢谢! 求两SQL语句 vb与oracle 8i的日期问题????????????????????????? 一个存储过程,欢迎进入! Oracle数据迁移方法
+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
就这样轻松写出来了
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
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