ip地址段比较

来源:互联网 发布:刘涛整容了吗 知乎 编辑:程序博客网 时间:2024/04/29 14:00

 只有MySql中有:

select ipaddress from table1 where inet_aton(ipaddress) > inet_ntoa("192.168.1.1") and inet_aton(ipaddress) < inet_aton("192.168.1.192") and ipaddress like "192.168.1.%";

 

oracle中就只能自己写了。

原创粉丝点击