How do I perform a wildcard "like" select on type inet with Postgresql 7.4?
I have a list of IP addresses stored in a Postgresql database with type inet. I want to use wildcard matching to select addresses, for example, 192.168.*.*. Traditional "like" matching (select ipaddr from users where ipaddr like '192.168.%') results in an error, "operator does not exist: inet ~~ "unknown" ".
Any ideas?
|