Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs](ip function) add ipv4/v6 datatype and some ip functions' docs #30194

Merged
merged 10 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docs
  • Loading branch information
sjyango committed Jan 21, 2024
commit 07cc6071425a68609afd5dcea597c5057c471f74
9 changes: 4 additions & 5 deletions docs/en/docs/sql-manual/sql-reference/Data-Types/IPV4.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ under the License.

<version since="dev">

IPv4
IPV4

</version>

### description

IPV4
IPv4 type, stored in the form of UInt32 in 4 bytes, used to represent IPv4 addresses
The range of values is ['0.0.0.0', '255.255.255.255']
IPv4 type, stored in the form of UInt32 in 4 bytes, used to represent IPv4 addresses.
The range of values is ['0.0.0.0', '255.255.255.255'].

`Inputs that exceed the value range will return NULL`
`Inputs that exceed the value range or have invalid format will return NULL`

### example

Expand Down Expand Up @@ -78,7 +78,6 @@ mysql> select * from ipv4_test order by id;
| 4 | 255.255.255.255 |
| 5 | NULL |
+------+-----------------+
5 rows in set (0.03 sec)
```

### keywords
Expand Down
9 changes: 4 additions & 5 deletions docs/en/docs/sql-manual/sql-reference/Data-Types/IPV6.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ under the License.

<version since="dev">

IPv6
IPV6

</version>

### description

IPV6
IPv6 type, stored in Int128 format in 16 bytes, used to represent IPv6 addresses
The range of values is ['::', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff']
IPv6 type, stored in Int128 format in 16 bytes, used to represent IPv6 addresses.
The range of values is ['::', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'].

`Inputs that exceed the value range will return NULL`
`Inputs that exceed the value range or have invalid format will return NULL`

### example

Expand Down Expand Up @@ -76,7 +76,6 @@ mysql> select * from ipv6_test order by id;
| 3 | ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff |
| 4 | NULL |
+------+-----------------------------------------+
4 rows in set (0.03 sec)
```

### keywords
Expand Down