在mysql中用int类型存储IP

SELECT
INET_ATON(
'127.0.0.1'
); 

SELECT
INET_NTOA(2130706433);
原文地址:https://www.cnblogs.com/penghq/p/10245680.html