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 5004d6f3f6f278b515742cea9012f7c8825c7a07
9 changes: 4 additions & 5 deletions docs/zh-CN/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类型,以UInt32的形式存储在4个字节中,用于表示IPv4地址
取值范围是 ['0.0.0.0', '255.255.255.255']
IPv4类型,以UInt32的形式存储在4个字节中,用于表示IPv4地址
取值范围是 ['0.0.0.0', '255.255.255.255']

`超出取值范围的输入将返回NULL`
`超出取值范围或者格式非法的输入将返回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/zh-CN/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类型,以Int128的形式存储在16个字节中,用于表示IPv6地址
取值范围是 ['::', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff']
IPv6类型,以Int128的形式存储在16个字节中,用于表示IPv6地址
取值范围是 ['::', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff']

`超出取值范围的输入将返回NULL`
`超出取值范围或者格式非法的输入将返回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