开发指南—DAL语句—SHOW—SHOW HELP

本文涉及的产品
云原生数据库 PolarDB 分布式版,标准版 2核8GB
简介: 本文介绍了如何使用SHOW HELP命令。

操作样例

SHOW HELP用于展示PolarDB-X所有辅助SQL指令及其说明。


mysql> show help;
+-----------------------------------------+---------------------------------------------------------+---------------------------------------------+
| STATEMENT                               | DESCRIPTION                                             | EXAMPLE                                     |
+-----------------------------------------+---------------------------------------------------------+---------------------------------------------+
| show rule                               | Report all table rule                                   |                                             |
| show rule from TABLE                    | Report table rule                                       | show rule from user                         |
| show full rule from TABLE               | Report table full rule                                  | show full rule from user                    |
| show topology from TABLE                | Report table physical topology                          | show topology from user                     |
| show partitions from TABLE              | Report table dbPartition or tbPartition columns         | show partitions from user                   |
| show broadcasts                         | Report all broadcast tables                             |                                             |
| show datasources                        | Report all partition db threadPool info                 |                                             |
| show node                               | Report master/slave read status                         |                                             |
| show slow                               | Report top 100 slow sql                                 |                                             |
| show physical_slow                      | Report top 100 physical slow sql                        |                                             |
| clear slow                              | Clear slow data                                         |                                             |
| trace SQL                               | Start trace sql, use show trace to print profiling data | trace select count(*) from user; show trace |
| show trace                              | Report sql execute profiling info                       |                                             |
| explain SQL                             | Report sql plan info                                    | explain select count(*) from user           |
| explain detail SQL                      | Report sql detail plan info                             | explain detail select count(*) from user    |
| explain execute SQL                     | Report sql on physical db plan info                     | explain execute select count(*) from user   |
| show sequences                          | Report all sequences status                             |                                             |
| create sequence NAME [start with COUNT] | Create sequence                                         | create sequence test start with 0           |
| alter sequence NAME [start with COUNT]  | Alter sequence                                          | alter sequence test start with 100000       |
| drop sequence NAME                      | Drop sequence                                           | drop sequence test                          |
| show db status                          | Report size of each physical database                   | show db status                              |
| show full db status                     | Report size of each physical table, support like        | show full db status like user               |
| show ds                                 | Report simple partition db info                         | show ds                                     |
| show connection                         | Report all connections info                             | show connection                             |
| show trans                              | Report trans info                                       | show trans/show trans limit 2               |
| show full trans                         | Report all trans info                                   | show full trans/show full trans limit 2     |
| show stats                              | Report all requst stats                                 | show stats                                  |
| show stc                                | Report all requst stats by partition                    | show stc                                    |
| show htc                                | Report the CPU/LOAD/MEM/NET/GC stats                    | show htc                                    |
| show ccl_rules                          | Report the ccl rule info                                | show ccl_rules                              |
| clear ccl_rules                         | Clear the ccl rules                                     | clear ccl_rules                             |
| show ccl_triggers                       | Report the ccl trigger info                             | show ccl_triggers                           |
| clear ccl_triggers                      | Clear the ccl triggers                                  | clear ccl_triggers                          |
+-----------------------------------------+---------------------------------------------------------+---------------
相关实践学习
快速体验PolarDB开源数据库
本实验环境已内置PostgreSQL数据库以及PolarDB开源数据库:PolarDB PostgreSQL版和PolarDB分布式版,支持一键拉起使用,方便各位开发者学习使用。
相关文章
|
5月前
|
Java 数据库连接 数据库
实践指南:构建高效稳定的Java数据库连接池
【6月更文挑战第24天】Java应用的数据库连接池提升性能和稳定性,涉及配置(初始连接数、最大连接数、超时时间)、并发控制(同步阻塞、异步回调、信号量)和异常处理。连接池减少连接创建/关闭时间,保证并发时的连接资源。异常处理确保系统稳定,简化上层调用者的异常管理。示例代码显示了连接池基础结构,实际应用推荐使用HikariCP或C3P0等预优化的连接池库。
108 0
开发指南—DAL语句—SHOW—SHOW HELP
本文介绍了如何使用SHOW HELP命令。
129 0
|
数据库
开发指南—DAL语句—SHOW—SHOW TABLEGROUP
用于查看当前数据库实例的表组信息,包括每个表组的分区情况,每个表组里都包括哪些表等信息。
|
索引
开发指南—DAL语句—SHOW—SHOW INDEX
您可以使用SHOW INDEX语句查看PolarDB-X表上的局部索引和全局索引信息。
|
SQL 关系型数据库 MySQL
开发指南—DAL语句—SHOW—SHOW PROCESSLIST
本文介绍如何使用SHOW PROCESSLIST和SHOW PHYSICAL_PROCESSLIST语句。
|
6月前
|
存储 弹性计算 调度
云计算——计算虚拟化
云计算——计算虚拟化
202 0
|
6月前
|
Linux C语言
排查Linux下C语言句柄打开太多的问题
排查Linux下C语言句柄打开太多的问题
65 0
|
NoSQL Cloud Native 关系型数据库
阿里云几种云数据库的区别
阿里云几种云数据库的区别,RDS关系型数据库如MySQL版、PolarDB、PostgreSQL、SQL Server和MariaDB等,NoSQL数据库如Redis、Tair、Lindorm和MongoDB
226 1
|
存储 IDE 开发工具
【毅力挑战】PCIe 每日一问一答(2022.02 归档)
【毅力挑战】PCIe 每日一问一答(2022.02 归档)
3901 1
【毅力挑战】PCIe 每日一问一答(2022.02 归档)