Which database engines support IP addresses as a native type?

Posted by Matt McClellan on Stack Overflow See other posts from Stack Overflow or by Matt McClellan
Published on 2010-01-13T18:00:09Z Indexed on 2010/04/04 7:03 UTC
Read the original article Hit count: 214

Filed under:
|

I'm trying to find databases with support for IP addresses as a native type (as opposed to storing as a string, or an unsigned integer, which at least one commenter has already pointed out won't work for IPv6). The primary reason I'm looking for this is ease of development. For example, sorting on a "native" IP address column would be correct (as opposed to when it's stored as a string). I would assume support for such a type would also include useful operations such as determining if an IP address is inside a specified network for use in WHERE clauses.

The only one I'm aware of so far is PostgreSQL with its inet class. Does anyone have any others?

© Stack Overflow or respective owner

Related posts about database

Related posts about ipaddress