Skip to main content
Version: V1.4.0

INET_NTOA

Declaration​

INET_NTOA(expr)

Description​

Returns the value of an IPv4 network address in network byte order as a string in the form of "a.b.c.d" as a string in the connection character set. If the parameter is invalid, NULL is returned.

Example​

SELECT INET_NTOA(16843009);
+---------------------+
| INET_NTOA(16843009) |
+---------------------+
| 1.1.1.1 |
+---------------------+
1 row in set (0.001 sec)