当前位置:Gxlcms > 数据库问题 > mysql数据库ip与字符串

mysql数据库ip与字符串

时间:2021-07-01 10:21:17 帮助过:10人阅读

使用inet_aton函数,将字符串IP转换为整型; mysql> select inet_aton(73.115.134.73) as ip; +------------+ | ip | +------------+ | 1232307785 | +------------+ //使用inet_ntoa函数,将整型IP转换为字符串; mysql> select inet_ntoa(1232307785) as ip; +---------------+ | ip | +---------------+ | 73.115.134.73 | +---------------+

 

mysql数据库ip与字符串

标签:font   地址   div   class   style   mysql   数字   sel   字符   

人气教程排行