---
title: "information_schema.COLLATIONS - OceanBase 数据库 V4.2.5 | OceanBase 文档中心"
description: information_schema.COLLATIONS 说明 该视图从 V1.4 版本开始引入。 功能描述 展示每个字符集的比对方法信息。 字段说明 字段名称 类型 是否可以为 NULL COLLATION_NAME varchar(128) NO 比对方法名称 CHARACTER_SET_NAME varcha…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.2.5 LTS

# information_schema.COLLATIONS

更新时间：2026-07-15 20:42:47

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.2.5/zh-CN/700.reference/700.system-views/400.system-view-of-mysql-mode/200.dictionary-view-of-mysql-mode/600.information_schema-collations-of-mysql-mode.md)

#### 说明

该视图从 V1.4 版本开始引入。

## 功能描述

展示每个字符集的比对方法信息。

## 字段说明

| **字段名称** | **类型** | **是否可以为 NULL** | |
| --- | --- | --- | --- |
| COLLATION_NAME | varchar(128) | NO | 比对方法名称 |
| CHARACTER_SET_NAME | varchar(128) | NO | 和 collation 关联的字符集名称 |
| ID | bigint(20) | NO | collation 的 ID |
| IS_DEFAULT | varchar(4) | NO | collation 是否是对应字符集的默认比对方法 |
| IS_COMPILED | varchar(4) | NO | 字符集是否被编译到服务器中 |
| SORTLEN | bigint(20) | NO | 排序字符集需要用到的内存大小，单位为字节 |

## 查询示例

查看每个字符集的比对方法信息，展示前 10 条记录。

```shell
obclient [oceanbase]> SELECT * FROM information_schema.COLLATIONS LIMIT 10;

```

查询结果如下：

```shell
+--------------------+--------------------+------+------------+-------------+---------+
| COLLATION_NAME     | CHARACTER_SET_NAME | ID   | IS_DEFAULT | IS_COMPILED | SORTLEN |
+--------------------+--------------------+------+------------+-------------+---------+
| utf8mb4_general_ci | utf8mb4            |   45 | Yes        | Yes         |       1 |
| utf8mb4_bin        | utf8mb4            |   46 |            | Yes         |       1 |
| binary             | binary             |   63 | Yes        | Yes         |       1 |
| gbk_chinese_ci     | gbk                |   28 | Yes        | Yes         |       1 |
| gbk_bin            | gbk                |   87 |            | Yes         |       1 |
| utf16_general_ci   | utf16              |   54 | Yes        | Yes         |       1 |
| utf16_bin          | utf16              |   55 |            | Yes         |       1 |
| gb18030_chinese_ci | gb18030            |  248 | Yes        | Yes         |       2 |
| gb18030_bin        | gb18030            |  249 |            | Yes         |       1 |
| latin1_swedish_ci  | latin1             |    8 | Yes        | Yes         |       1 |
+--------------------+--------------------+------+------------+-------------+---------+
10 rows in set

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
