Skip navigation links

MySQL Forums :: MyISAM :: Best Field Type for IP address?


Advanced Search

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.

Options: ReplyQuote


Subject Views Written By Posted
Best Field Type for IP address? 40148 Jared Valarta 10/12/2005 12:19PM
Re: Best Field Type for IP address? 24461 10/17/2005 01:37PM
Re: Best Field Type for IP address? 37270 Me Me 05/18/2006 01:23PM
Re: Best Field Type for IP address? 13739 Chris C 10/02/2006 09:34AM


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.