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

简介: 本文介绍了如何使用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                          |
+-----------------------------------------+---------------------------------------------------------+---------------
相关文章
|
网络协议 网络安全 数据安全/隐私保护
三种不同类型的ssh隧道
想通过ssh隧道连接远端机器的VNC服务,对ssh -L命令不太熟悉,man ssh后发现3组与隧道(turnnel)相关的参数:ssh -D,ssh -L,ssh -R,一下子就搞糊涂了,所有下决心仔细研究一番。 何谓SSH隧道 隧道是一种把一种网络协议封装进另外一种网络协议进行传输的技术。这里我们研究ssh隧道,所以所有的网络通讯都是加密的。又被称作端口转发,因为ssh隧道通常会绑定一个本地端口,所有发向这个端口端口的数据包,都会被加密并透明地传输到远端系统。 SSH隧道的类型 ssh隧道有3种类型: 动态端口转发(Socks 代理) 本地端口转发 远端端口转发 动态端口转发
572 0
|
SQL 关系型数据库 MySQL
彻底搞懂 MySQL 事务的隔离级别
MySQL的事务隔离级别一共有四个,分别是读未提交、读已提交、可重复读以及可串行化。
65643 12
彻底搞懂 MySQL 事务的隔离级别
|
数据库
开发指南—DAL语句—SHOW—SHOW TABLEGROUP
用于查看当前数据库实例的表组信息,包括每个表组的分区情况,每个表组里都包括哪些表等信息。
|
索引
开发指南—DAL语句—SHOW—SHOW INDEX
您可以使用SHOW INDEX语句查看PolarDB-X表上的局部索引和全局索引信息。
|
SQL 关系型数据库 MySQL
开发指南—DAL语句—SHOW—SHOW PROCESSLIST
本文介绍如何使用SHOW PROCESSLIST和SHOW PHYSICAL_PROCESSLIST语句。
|
数据可视化 Linux 对象存储
OSS常用工具汇总
总结了12款OSS常用工具,熟悉这些工具您可以更高效的使用OSS。
13616 0
开发指南—DAL语句—SHOW—SHOW HELP
本文介绍了如何使用SHOW HELP命令。
|
12月前
|
存储 Kubernetes 负载均衡
「容器云平台」Mesos 和 Kubernetes的比较
「容器云平台」Mesos 和 Kubernetes的比较
|
存储 关系型数据库 MySQL
MySQL存储时间是存时间戳和还是年月日时分秒格式的时间好?底层原理是什么?
MySQL存储时间是存时间戳和还是年月日时分秒格式的时间好?底层原理是什么?
690 1
|
存储 SQL Oracle
数据库概述(概述、事务、索引、性能调优)
数据库概述(概述、事务、索引、性能调优)
122 0
数据库概述(概述、事务、索引、性能调优)