ip2long 转换后的 IP 应该如何存储在 MySQL 中? [英] How should ip2long converted IP's be stored in MySQL?

查看:50
本文介绍了ip2long 转换后的 IP 应该如何存储在 MySQL 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对函数或 ip 的了解不够,无法确定我的列结构应该如何存储它.有什么建议吗?

解决方案

只需使用一个未签名的 INT 字段即可.

另请参阅 http://lists.mysql.com/cluster/2781 以了解有关它的讨论.>

I don't know enough about the function, or ip's, to determine how my column structure should be for storing this. Any suggestions?

解决方案

Simply use an unsigned INT field for it.

Also see http://lists.mysql.com/cluster/2781 for a discussion about it.

这篇关于ip2long 转换后的 IP 应该如何存储在 MySQL 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆