MySQL Forums :: MyISAM :: Best Field Type for IP address?
Best Field Type for IP address?
Posted by: Jared Valarta
Date: October 12, 2005 12:19PM
I have a very large table (700mb currently) which is growing and I'm looking for ways to shrink it's size without loosing data.
One of the fields is IP address (xx.xx.xx.xx) which I have currently as a varchar(15). Is there a better field type for IP address that would maximize storage? I thought about Decimal but given an IP has multiple dots I was affraid to try it not knowing the result.
Any thoughts appriciated.
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.