3
The Internet works through protocols like Ipv4 and Ipv6, possessing 32 bits and 128bits, which are numerical combinations that establish connections between computers. I have a device table, tbl_device
, in which I need to send status of the device time or other. The status includes the location of the IP
device, however I was in doubt in what format to use, if TEXT
, VARCHAR
, CHAR
etc. in the database.
What would be the ideal type to save Ipv4 and/or Ipv6 in Mysql?
I didn’t get the last phrase @bigown ^^
– viana
@acklay needs to improve something else?
– Maniero
I kept doing some research, where several people give other ideas in addition to VARCHAR(15). I’m still researching to better adapt performance and space.
– viana
I don’t like the idea especially if it’s with separate columns, as demonstrated. But even if it’s in the same column I don’t like the idea of taking 16 bytes to store only 4. Of course it’s an option.
– Maniero
Separate columns for me also do not see much advantage.
– viana