mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
11 lines
478 B
MySQL
11 lines
478 B
MySQL
|
-- Equal
|
||
|
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
|
||
|
SELECT toIPv6('::ffff:127.0.0.1') = toIPv4('127.0.0.1');
|
||
|
|
||
|
-- Not equal
|
||
|
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.2');
|
||
|
SELECT toIPv4('127.0.0.2') = toIPv6('::ffff:127.0.0.1');
|
||
|
SELECT toIPv6('::ffff:127.0.0.1') = toIPv4('127.0.0.2');
|
||
|
SELECT toIPv6('::ffff:127.0.0.2') = toIPv4('127.0.0.1');
|
||
|
SELECT toIPv4('127.0.0.1') = toIPv6('::ffef:127.0.0.1');
|
||
|
SELECT toIPv6('::ffef:127.0.0.1') = toIPv4('127.0.0.1');
|