INET_NTOA

2023-10-24 09:23:03  Updated

Syntax

INET_NTOA(expr)

Purpose

You can call this function to return an IPv4 address that is expressed in network byte order as an IP address string in dotted-decimal notation, and include 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