Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to search IP Address in a Range

user10503319Jan 12 2013 — edited Jan 12 2013
Hello Experts,

I have come across a functionality where i need to search IP Address in a range using SQL. For example -

Start IP Addres - '10.230.0.1'
End IP Adress - '10.230.0.74'

select * from ip_address_inventory
where ip_address between '10.230.0.1' and '10.230.0.74'

It should result only 74 rows, but it is result all the range till '10.230.0.255' which is not expected

Please help.

Regards,
Vipul Agrawal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2013
Added on Jan 12 2013
6 comments
9,396 views