IPV4_TO_IPV6

IPV4_TO_IPV6

Description

Syntax

IPV6 IPV4_TO_IPV6(IPV4 ipv4)

接受一个类型为 IPv4 的地址,返回相应 IPv6 的形式。

Example

  1. mysql [(none)]>select ipv6_num_to_string(ipv4_to_ipv6(to_ipv4('192.168.0.1')));
  2. +----------------------+
  3. | '::ffff:192.168.0.1' |
  4. +----------------------+
  5. | ::ffff:192.168.0.1 |
  6. +----------------------+
  7. 1 row in set (0.02 sec)

Keywords

IPV4_TO_IPV6, IP