insert ip into mysql
问题 I came accross this statement for inserting an IP into a mysql table. INSERT INTO `best` VALUES (132+256*(172+256*(109+256*(115)) I would like to know why an IP is being inserted this way, and how to actually work out what IP is being inserted 回答1: Its prefer storing the IP address in decimal (integer) as it makes it easier to work with later. But you can use MySQL commands to easily convert the data. For instance if you retrieved the IP you can use the inet_aton('$ip') command to convert the