All pages
Powered by GitBook
1 of 1

Loading...

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 (4 or 8 byte), returns the dotted-quad representation of the address as a string.

Examples

192.168.1.1 corresponds to 3232235777 since 192 x 2563 + 168 x 256 2 + 1 x 256 + 1 = 3232235777.

See Also

This page is licensed: GPLv2, originally from

INET6_NTOA()
INET_ATON()
fill_help_tables.sql
SELECT INET_NTOA(3232235777);
+-----------------------+
| INET_NTOA(3232235777) |
+-----------------------+
| 192.168.1.1           |
+-----------------------+