User Tools

Site Tools


mysql:storing_ip

MySQL - Storing IP

mysql> SELECT INET_ATON('192.168.10.50');
+----------------------------+
| INET_ATON('192.168.10.50') |
+----------------------------+
|                 3232238130 | 
+----------------------------+
1 row in set (0.00 sec)

mysql> SELECT INET_NTOA('3232238130');
+-------------------------+
| INET_NTOA('3232238130') |
+-------------------------+
| 192.168.10.50           | 
+-------------------------+
1 row in set (0.00 sec)
mysql/storing_ip.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki