INET_NTOA

2023-07-28 02:55:42  Updated

Syntax

INET_NTOA(expr)

Purpose

INET_NTOA() returns an IPv4 address that is expressed in network byte order as an IP address string in dotted-decimal notation and includes this string in the connection character set. It returns NULL if the argument is invalid.

Examples

obclient> SELECT INET_NTOA(16843009);
+---------------------+
| INET_NTOA(16843009) |
+---------------------+
| 1.1.1.1             |
+---------------------+
1 row in set

Contact Us