mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Update docs
This commit is contained in:
parent
cd395ef346
commit
3ea362373b
@ -57,6 +57,18 @@ SELECT toTypeName(from), hex(from) FROM hits LIMIT 1;
|
|||||||
└──────────────────┴───────────┘
|
└──────────────────┴───────────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
|
IPv4 addresses can be directly compared to IPv6 addresses:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
|
||||||
|
```
|
||||||
|
|
||||||
|
```text
|
||||||
|
┌─equals(toIPv4('127.0.0.1'), toIPv6('::ffff:127.0.0.1'))─┐
|
||||||
|
│ 1 │
|
||||||
|
└─────────────────────────────────────────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
**See Also**
|
**See Also**
|
||||||
|
|
||||||
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)
|
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)
|
||||||
|
@ -57,6 +57,19 @@ SELECT toTypeName(from), hex(from) FROM hits LIMIT 1;
|
|||||||
└──────────────────┴──────────────────────────────────┘
|
└──────────────────┴──────────────────────────────────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
|
IPv6 addresses can be directly compared to IPv4 addresses:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT toIPv4('127.0.0.1') = toIPv6('::ffff:127.0.0.1');
|
||||||
|
```
|
||||||
|
|
||||||
|
```text
|
||||||
|
┌─equals(toIPv4('127.0.0.1'), toIPv6('::ffff:127.0.0.1'))─┐
|
||||||
|
│ 1 │
|
||||||
|
└─────────────────────────────────────────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
**See Also**
|
**See Also**
|
||||||
|
|
||||||
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)
|
- [Functions for Working with IPv4 and IPv6 Addresses](../functions/ip-address-functions.md)
|
||||||
|
Loading…
Reference in New Issue
Block a user