Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Feb 26, 2024
1 parent d34a6bb commit 7714770
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,29 @@ under the License.

### Description

The "SHOW CHARACTER" command is used to display the available character sets in the current database management system,
along with some associated properties for each character set. These properties may include the name of the character set,
the default collation, and the maximum byte length, among others. By running the "SHOW CHARACTER" command, you can view the list of supported character sets in the system along with their detailed information.

The "SHOW CHARACTER" command returns the following fields:

Charset: Character set
Description: Description
Default Collation: Default collation name
Maxlen: Maximum byte length.


### Example

```sql
mysql> show collation;

| Charset | Description | Default collation | Maxlen |
|-----------|-----------------|-------------------|--------|
| utf8mb4 | UTF-8 Unicode | utf8mb4_0900_bin | 4 |

```

### Keywords

SHOW, CHARSET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mysql> show collation;
+-----------------+---------+------+---------+----------+---------+
| Collation | Charset | Id | Default | Compiled | Sortlen |
+-----------------+---------+------+---------+----------+---------+
| utf8_general_ci | utf8 | 33 | Yes | Yes | 1 |
| utf8mb4_0900_bin | utf8mb4 | 33 | Yes | Yes | 1 |
+-----------------+---------+------+---------+----------+---------+
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,27 @@ under the License.

### Description

"SHOW CHARACTER" 命令用于显示当前数据库管理系统中可用的字符集(character set)以及与每个字符集相关联的一些属性。这些属性可能包括字符集的名称、默认排序规则、最大字节长度等。通过运行 "SHOW CHARACTER" 命令,可以查看系统中支持的字符集列表及其详细信息。

SHOW CHARACTER 命令返回以下字段:


Charset:字符集
Description:描述
Default Collation:默认校对名称
Maxlen:最大字节长度

### Example

```sql
mysql> show collation;

| Charset | Description | Default collation | Maxlen |
|-----------|-----------------|-------------------|--------|
| utf8mb4 | UTF-8 Unicode | utf8mb4_0900_bin | 4 |

```

### Keywords

SHOW, CHARSET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mysql> show collation;
+-----------------+---------+------+---------+----------+---------+
| Collation | Charset | Id | Default | Compiled | Sortlen |
+-----------------+---------+------+---------+----------+---------+
| utf8_general_ci | utf8 | 33 | Yes | Yes | 1 |
| utf8mb4_0900_bin | utf8mb4 | 33 | Yes | Yes | 1 |
+-----------------+---------+------+---------+----------+---------+
```

Expand Down

0 comments on commit 7714770

Please sign in to comment.