INET_ATON() also understands short-form IP addresses : INET_ATON : Miscellaneous Functions MySQL TUTORIALS


MySQL TUTORIALS » Miscellaneous Functions » INET_ATON »

 

INET_ATON() also understands short-form IP addresses


mysql>
mysql> SELECT INET_ATON('127.0.0.1'), INET_ATON('127.1');
+------------------------+--------------------+
| INET_ATON('127.0.0.1') | INET_ATON('127.1') |
+------------------------+--------------------+
|             2130706433 |         2130706433 |
+------------------------+--------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Miscellaneous Functions
» INET_ATON