4 ms·
MySQL, also has built-in functions to do this, http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_inet-aton http://dev.mysql.com/doc/r
by pmorici 17y ago
MySQL, also has built-in functions to do this, http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_inet-aton http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functio...
- neilc 17y agoPostgreSQL has IMHO a nicer solution: abstract data types to represent IPv4, IPv6, and MAC addresses, along with the functions over those types that you'd expect. http://www.postgresql.org/docs/8.4/static/datatype-net-types.html http://www.postgresql.org/docs/8.4/static/datatype-net-types... http://www.postgresql.org/docs/8.4/static/functions-net.html http://www.postgresql.org/docs/8.4/static/functions-net.html