Skip to main content
Skip to main content

INET6_NTOA

INET6_NTOA​

SinceVersion dev

INET6_NTOA

description​

Syntax​

VARCHAR INET6_NTOA(VARCHAR ipv6_num)

Takes an IPv6 address in binary format of type String. Returns the string of this address in text format. The IPv4 address mapped by IPv6 starts with ::ffff:111.222.33.

example​

mysql> select inet6_ntoa(unhex('2A0206B8000000000000000000000011')) as addr;
+--------------+
| addr |
+--------------+
| 2a02:6b8::11 |
+--------------+
1 row in set (0.01 sec)

keywords​

INET6_NTOA, IP