MYSQL使用建议使用整型保存ip地址

2016-11-25

mysql中建议使用整型保存ip地址,通过函数转换

set @ip = '192.168.1.110';
select inet_aton(@ip);
select inet_ntoa(inet_aton(@ip));
Newer
springboot配置文件
Older
编写docker-compose项目
© 2017 walljay - Powered by Hexo - Theme Jane
Home Archives Tag Github