IPV6_NUM_TO_STRING

SinceVersion dev

IPV6_NUM_TO_STRING

description

Syntax

VARCHAR IPV6_NUM_TO_STRING(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

  1. mysql> select ipv6_num_to_string(unhex('2A0206B8000000000000000000000011')) as addr;
  2. +--------------+
  3. | addr |
  4. +--------------+
  5. | 2a02:6b8::11 |
  6. +--------------+
  7. 1 row in set (0.01 sec)

keywords

IPV6_NUM_TO_STRING, IP