---
title: "oceanbase.DBA_TAB_STATS_HISTORY - OceanBase 数据库 V4.2.5 | OceanBase 文档中心"
description: oceanbase.DBA_TAB_STATS_HISTORY 说明 该视图从 V4.0.0 版本开始引入。 功能描述 展示当前租户的所有表的表统计历史记录。 字段说明 字段名称 类型 是否可以为 NULL 描述 OWNER varchar(128) NO 对象的所有者 TABLE_NAME varchar(128)…
---
切换语言

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

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

# oceanbase.DBA_TAB_STATS_HISTORY

更新时间：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/15300.o-dba_tab_stats_history-of-mysql-mode.md)

#### 说明

该视图从 V4.0.0 版本开始引入。

## 功能描述

展示当前租户的所有表的表统计历史记录。

## 字段说明

| 字段名称 | 类型 | 是否可以为 NULL | 描述 |
| --- | --- | --- | --- |
| OWNER | varchar(128) | NO | 对象的所有者 |
| TABLE_NAME | varchar(128) | NO | 表名 |
| PARTITION_NAME | varchar(128) | NO | 分区表名称 |
| SUBPARTITION_NAME | varchar(128) | NO | 子分区表的名称 |
| STATS_UPDATE_TIME | datetime(6) | NO | 更新统计数据的时间 |

## 查询示例

查看本租户中表 `t_subpart` 的表统计修改历史记录。

```shell
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_TAB_STATS_HISTORY WHERE TABLE_NAME='t_subpart';

```

查询结果如下：

```shell
+-------+---------------+----------------+-------------------+----------------------------+
| OWNER | TABLE_NAME    | PARTITION_NAME | SUBPARTITION_NAME | STATS_UPDATE_TIME          |
+-------+---------------+----------------+-------------------+----------------------------+
| test  | t_subpart     | NULL           | NULL              | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | NULL           | NULL              | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2023          | NULL              | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2023          | NULL              | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2024          | NULL              | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2024          | NULL              | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p_max          | NULL              | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2023          | p2023sp0          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2023          | p2023sp0          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2023          | p2023sp1          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2023          | p2023sp1          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2023          | p2023sp2          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2023          | p2023sp2          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2023          | p2023sp3          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2023          | p2023sp3          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2024          | p2024sp0          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2024          | p2024sp0          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2024          | p2024sp1          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2024          | p2024sp1          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2024          | p2024sp2          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2024          | p2024sp2          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p2024          | p2024sp3          | 2025-03-21 15:23:11.884679 |
| test  | t_subpart     | p2024          | p2024sp3          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p_max          | p_maxsp0          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p_max          | p_maxsp1          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p_max          | p_maxsp2          | 2025-03-21 16:21:09.868166 |
| test  | t_subpart     | p_max          | p_maxsp3          | 2025-03-21 16:21:09.868166 |
+-------+---------------+----------------+-------------------+----------------------------+
27 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) 咨询热线
