INET_NTOA
Convert an integer to an IPv4 address. This function takes a numeric IP value and returns its dotted-quad string representation.
Syntax
INET_NTOA(expr)Description
Given a numeric IPv4 network address in network byte order, returns the dotted-quad representation of the address as a string. The address must be in the range 0 to 4294967295; for a larger value, INET_NTOA() returns NULL.
Examples
SELECT INET_NTOA(3232235777);
+-----------------------+
| INET_NTOA(3232235777) |
+-----------------------+
| 192.168.1.1 |
+-----------------------+192.168.1.1 corresponds to 3232235777 since 192 x 256³ + 168 x 256² + 1 x 256 + 1 = 3232235777.
See Also
This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?

