PostgreSQL has network address data types, MySQL misses such things.
Is it anyways possible to do something like a select on the base of a ip and netmask?
Like if you've got a field ip_adress in a table and want to select all entries corresponding to let's say
ip: 1.2.4.0
netmask: 255.255.254.0
so range would be 1.2.4.0 up till 1.2.5.255
the only way i can think of right now is creating an array with each IP adress in and then using something like
select * from data where ip = "1.2.4.1" or ip = "1.2.4.2" ... "1.2.5.255"
but this surely isn't very well ...