Product Solutions Support
Try MemSQL

INET_NTOA

Converts a 32-bit integer to an IPv4 address.

INET_NOTA ( int32 )

Arguments

Return Type

String, a dotted-quad IP address, eg ‘1.2.3.4’ or NULL if the IP address cannot be parsed.

Info

This function does not handle IPv6 addresses.

Examples

+---------------------+
| inet_ntoa(16909060) |
+---------------------+
| 1.2.3.4             |
+---------------------+

memsql> select inet_ntoa(169090600000000000);
+-------------------------------+
| inet_ntoa(169090600000000000) |
+-------------------------------+
| NULL                          |
+-------------------------------+
Was this article useful?