Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
INET_ NTOA
On this page
The INET_ function converts a 32-bit integer to an IPv4 address.
Syntax
INET_NOTA ( int32 )
Arguments
-
int32: an integer.
Return Type
String, a dotted-quad IP address, eg 1.
or NULL if the IP address cannot be parsed.
Note
This function does not handle IPv6 addresses.
Examples
SELECT INET_NTOA(16909060);
+---------------------+
| inet_ntoa(16909060) |
+---------------------+
| 1.2.3.4 |
+---------------------+SELECT INET_NTOA(169090600000000000);
+-------------------------------+
| INET_NTOA(169090600000000000) |
+-------------------------------+
| NULL |
+-------------------------------+Related Topics
Last modified: