南大通用数据库-Gbase-8a-学习-39-show命令汇总(持续更新)

目录

一、环境信息

二、show功能参数

三、show命令示例

1、SHOW LOAD LOGS(加载日志报错)

2、SHOW COLUMNS(列信息)

3、SHOW CREATE DATABASE(建库信息)

4、SHOW CREATE PROCEDURE (存储过程信息)

5、SHOW CREATE TABLE (建表信息)

6、SHOW TABLE LOCKS (表锁信息)

7、SHOW ERRORS (上一条命令错误信息)

8、SHOW STATUS (连接的状态信息)

9、SHOW VARIABLES (参数信息)

10、SHOW GRANTS (权限信息)

11、SHOW INDEX (索引信息)

12、SHOW ENGINES (存储引擎信息)

13、SHOW GCLUSTER NODES(调度节点信息)

14、SHOW  NODES(数据节点信息)

15、SHOW PROCESSLIST (正在运行的线程信息)

16、SHOW TABLES (指定数据库的非临时表信息)


一、环境信息

名称
CPUIntel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
操作系统CentOS Linux release 7.9.2009 (Core)
内存3G
逻辑核数2
Gbase8a版本8.6.2-R43.34.27468a27

二、show功能参数

这些参数不一定所有show命令都支持的,注意哦。

参数名描述
full显示更加完整的信息。
like模糊匹配。
where过滤性更强,支持对返回结果进行过滤,就像我们平时用SQL一样。

三、show命令示例

1、SHOW LOAD LOGS(加载日志报错)

测试数据

[gbase@czg2 ~]$ cat TestData_2023_09_14.txt 
sun
czg

建表语句

gbase> CREATE TABLE CZG.TEST_2023_09_14 (DATA CHAR(1));
Query OK, 0 rows affected (Elapsed: 00:00:00.65)

加载错误

gbase> LOAD DATA INFILE 'file://192.168.142.12///home/gbase/TestData_2023_09_14.txt' into table CZG.TEST_2023_09_14 DATA_FORMAT 3 FIELDS TERMINATED BY '|' -> MAX_BAD_RECORDS 0;
ERROR 1733 (HY000): (GBA-01EX-700) Gbase general error: Task 8650775 failed, [192.168.142.12:5050](GBA-02AD-0005)Failed to query in gnode:
DETAIL: (GBA-01-600) Gbase internal error: Task 8650775, Too many bad records!
SQL: LOAD /*+ TID('19333279') */ DATA INFILE '///home/gbase/TestData_2023_09_14.txt' INTO TABLE `czg`.`test_2023_09_14_n1` DATA_FORMAT 3 FILE_FORMAT UNDEFINED  FIELDS TERMINATED BY '|' MAX_BAD_RECORDS 0 HOST '::ffff:192.168.142.12' CURRENT_TIMESTAMP 1694679966 SCN_NUMBER 8650775 GCLUSTER_PORT 5258 INTO SERVER (H

通过show load logs查看报错信息。

gbase> show load logs 8650775 \G;
*************************** 1. row ***************************task_id: 8650775db_name: czgtb_name: test_2023_09_14
err_data_ip: ::ffff:192.168.142.12file_name: ///home/gbase/TestData_2023_09_14.txt
file_offset: 0record_len: 4err_column: 1err_reason: Data truncatederr_data: sun*************************** 2. row ***************************task_id: 8650775db_name: czgtb_name: test_2023_09_14
err_data_ip: ::ffff:192.168.142.12file_name: ///home/gbase/TestData_2023_09_14.txt
file_offset: 4record_len: 4err_column: 1err_reason: Data truncatederr_data: czg2 rows in set (Elapsed: 00:00:00.00)ERROR: 
No query specified

2、SHOW COLUMNS(列信息)

语法树

SHOW [FULL] COLUMNS FROM table_name [FROM database_name] [LIKE 'pattern']

例子

gbase> show columns from testtab from czg;
+-------+--------------+------+-----+-------------------+-----------------------------+
| Field | Type         | Null | Key | Default           | Extra                       |
+-------+--------------+------+-----+-------------------+-----------------------------+
| a     | int(11)      | YES  |     | NULL              |                             |
| b     | double       | YES  |     | NULL              |                             |
| c     | varchar(100) | YES  | MUL | NULL              |                             |
| d     | text         | YES  |     | NULL              |                             |
| e     | blob         | YES  |     | NULL              |                             |
| f     | longblob     | YES  |     | NULL              |                             |
| g     | date         | YES  |     | NULL              |                             |
| h     | timestamp    | NO   |     | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
+-------+--------------+------+-----+-------------------+-----------------------------+
8 rows in set (Elapsed: 00:00:00.00)gbase> show full columns from testtab from czg;
+-------+--------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+-----------+
| Field | Type         | Collation       | Null | Key | Default           | Extra                       | Privileges                      | Comment   |
+-------+--------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+-----------+
| a     | int(11)      | NULL            | YES  |     | NULL              |                             | select,insert,update,references | 总金额    |
| b     | double       | NULL            | YES  |     | NULL              |                             | select,insert,update,references |           |
| c     | varchar(100) | utf8_general_ci | YES  | MUL | NULL              |                             | select,insert,update,references |           |
| d     | text         | utf8_general_ci | YES  |     | NULL              |                             | select,insert,update,references |           |
| e     | blob         | NULL            | YES  |     | NULL              |                             | select,insert,update,references |           |
| f     | longblob     | NULL            | YES  |     | NULL              |                             | select,insert,update,references |           |
| g     | date         | NULL            | YES  |     | NULL              |                             | select,insert,update,references |           |
| h     | timestamp    | NULL            | NO   |     | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP | select,insert,update,references |           |
+-------+--------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+-----------+
8 rows in set (Elapsed: 00:00:00.00)gbase> show full columns from testtab from czg where Field = 'a';
+-------+---------+-----------+------+-----+---------+-------+---------------------------------+-----------+
| Field | Type    | Collation | Null | Key | Default | Extra | Privileges                      | Comment   |
+-------+---------+-----------+------+-----+---------+-------+---------------------------------+-----------+
| a     | int(11) | NULL      | YES  |     | NULL    |       | select,insert,update,references | 总金额    |
+-------+---------+-----------+------+-----+---------+-------+---------------------------------+-----------+
1 row in set (Elapsed: 00:00:00.00)gbase> show full columns from testtab from czg like 'b';
+-------+--------+-----------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type   | Collation | Null | Key | Default | Extra | Privileges                      | Comment |
+-------+--------+-----------+------+-----+---------+-------+---------------------------------+---------+
| b     | double | NULL      | YES  |     | NULL    |       | select,insert,update,references |         |
+-------+--------+-----------+------+-----+---------+-------+---------------------------------+---------+
1 row in set (Elapsed: 00:00:00.00)

3、SHOW CREATE DATABASE(建库信息)

语法树

SHOW CREATE {DATABASE | SCHEMA} database_name;

例子

gbase> SHOW CREATE DATABASE CZG;
+----------+--------------------------------------------------+
| Database | Create Database                                  |
+----------+--------------------------------------------------+
| czg      | CREATE DATABASE "czg" DEFAULT CHARACTER SET utf8 |
+----------+--------------------------------------------------+
1 row in set (Elapsed: 00:00:00.00)gbase> SHOW CREATE SCHEMA CZG;
+----------+--------------------------------------------------+
| Database | Create Database                                  |
+----------+--------------------------------------------------+
| czg      | CREATE DATABASE "czg" DEFAULT CHARACTER SET utf8 |
+----------+--------------------------------------------------+
1 row in set (Elapsed: 00:00:00.31)

4、SHOW CREATE PROCEDURE (存储过程信息)

语法树

SHOW CREATE PROCEDURE [database_name.]proc_name;

例子

gbase> SHOW CREATE PROCEDURE czg.GenerateTestData;
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+
| Procedure        | sql_mode                                                                                                                                                                                            | Create Procedure                                                                                                                                                                                                                                                                                                                                                             | character_set_client | collation_connection | Database Collation |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+
| GenerateTestData | PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ONLY_FULL_GROUP_BY,NO_AUTO_VALUE_ON_ZERO,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,PAD_CHAR_TO_FULL_LENGTH | CREATE DEFINER="root"@"%" PROCEDURE "GenerateTestData"(num int)
begindeclare tempval int;set tempval = 1;set autocommit = off;label: loopinsert into czg values(tempval);if tempval >= num then leave label;elseset tempval = tempval + 1;end if;end loop label;commit;
end | utf8                 | utf8_general_ci      | utf8_general_ci    |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+
1 row in set (Elapsed: 00:00:00.16)

5、SHOW CREATE TABLE (建表信息)

语法树

SHOW CREATE TABLE [database_name.]table_name;

例子

gbase> show create table czg.czg;
+-------+-------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                      |
+-------+-------------------------------------------------------------------------------------------------------------------+
| czg   | CREATE TABLE "czg" ("a" int(11) DEFAULT NULL
) ENGINE=EXPRESS DEFAULT CHARSET=utf8 TABLESPACE='sys_tablespace' |
+-------+-------------------------------------------------------------------------------------------------------------------+
1 row in set (Elapsed: 00:00:00.30)gbase> show full create table czg.czg;
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                                                      |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| czg   | CREATE TABLE "czg" ("a" int(11) DEFAULT NULL
) ENGINE=EXPRESS TID(24577) UID(1) DEFAULT CHARSET=utf8 TABLESPACE='sys_tablespace' COLUMN_IDS(0) |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (Elapsed: 00:00:00.13)

6、SHOW TABLE LOCKS (表锁信息)

测试版本没模拟出来,后面再摸索一下。

gbase> LOCK TABLE CZG.TESTTAB WRITE;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)gbase> desc CZG.TESTTAB;
+-------+--------------+------+-----+-------------------+-----------------------------+
| Field | Type         | Null | Key | Default           | Extra                       |
+-------+--------------+------+-----+-------------------+-----------------------------+
| a     | int(11)      | YES  |     | NULL              |                             |
| b     | double       | YES  |     | NULL              |                             |
| c     | varchar(100) | YES  | MUL | NULL              |                             |
| d     | text         | YES  |     | NULL              |                             |
| e     | blob         | YES  |     | NULL              |                             |
| f     | longblob     | YES  |     | NULL              |                             |
| g     | date         | YES  |     | NULL              |                             |
| h     | timestamp    | NO   |     | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
+-------+--------------+------+-----+-------------------+-----------------------------+
8 rows in set (Elapsed: 00:00:00.10)gbase> INSERT INTO CZG.TESTTAB(A) VALUES(1);
Query OK, 1 row affected (Elapsed: 00:00:00.74)gbase> SHOW TABLE LOCKS CZG.TESTTAB;
Empty set (Elapsed: 00:00:00.00)

7、SHOW ERRORS (上一条命令错误信息)

例子

gbase> set global autocommit = 0;
ERROR 1228 (HY000): Variable 'autocommit' is a SESSION variable and can't be used with SET GLOBALgbase> show errors;
+-------+------+-------------------------------------------------------------------------------+
| Level | Code | Message                                                                       |
+-------+------+-------------------------------------------------------------------------------+
| Error | 1228 | Variable 'autocommit' is a SESSION variable and can't be used with SET GLOBAL |
+-------+------+-------------------------------------------------------------------------------+
1 row in set (Elapsed: 00:00:00.00)

8、SHOW STATUS (连接的状态信息)

语法树

SHOW [GLOBAL | SESSION] STATUS [LIKE 'pattern'];

GLOBAL参数可以获取所有连接集群的信息,SESSION 只能获得当前连接的信息。

默认值为 SESSION。LOCAL 和 SESSION 意义相同。

注意一些状态变量只有全局值,这样无论使用 GLOBAL 还是 SESSION, 都只能得到相同的值。

例子

gbase> SHOW STATUS LIKE 'Meminfo%';
+----------------------------------+-----------+
| Variable_name                    | Value     |
+----------------------------------+-----------+
| Meminfo_cache_access_times       | 0         |
| Meminfo_cache_hit_rate_%         | 0.000000  |
| Meminfo_cache_hit_times          | 0         |
| Meminfo_cache_miss_times         | 0         |
| Meminfo_cache_removed_list_size  | 0         |
| Meminfo_dc_heap_availble_size    | 536870912 |
| Meminfo_dc_heap_malloc_size      | 0         |
| Meminfo_dc_heap_total_size       | 536870912 |
| Meminfo_dc_heap_used_size        | 0         |
| Meminfo_large_heap_availble_size | 268435456 |
| Meminfo_large_heap_malloc_size   | 0         |
| Meminfo_large_heap_total_size    | 268435456 |
| Meminfo_large_heap_used_size     | 0         |
| Meminfo_temp_heap_availble_size  | 268430064 |
| Meminfo_temp_heap_malloc_size    | 0         |
| Meminfo_temp_heap_total_size     | 268435456 |
| Meminfo_temp_heap_used_size      | 5392      |
+----------------------------------+-----------+
17 rows in set (Elapsed: 00:00:00.00)gbase> SHOW GLOBAL STATUS LIKE 'Meminfo%';
+----------------------------------+-----------+
| Variable_name                    | Value     |
+----------------------------------+-----------+
| Meminfo_cache_access_times       | 0         |
| Meminfo_cache_hit_rate_%         | 0.000000  |
| Meminfo_cache_hit_times          | 0         |
| Meminfo_cache_miss_times         | 0         |
| Meminfo_cache_removed_list_size  | 0         |
| Meminfo_dc_heap_availble_size    | 536870912 |
| Meminfo_dc_heap_malloc_size      | 0         |
| Meminfo_dc_heap_total_size       | 536870912 |
| Meminfo_dc_heap_used_size        | 0         |
| Meminfo_large_heap_availble_size | 268435456 |
| Meminfo_large_heap_malloc_size   | 0         |
| Meminfo_large_heap_total_size    | 268435456 |
| Meminfo_large_heap_used_size     | 0         |
| Meminfo_temp_heap_availble_size  | 268430064 |
| Meminfo_temp_heap_malloc_size    | 0         |
| Meminfo_temp_heap_total_size     | 268435456 |
| Meminfo_temp_heap_used_size      | 5392      |
+----------------------------------+-----------+
17 rows in set (Elapsed: 00:00:00.00)

9、SHOW VARIABLES (参数信息)

语法树

SHOW [GLOBAL | SESSION] VARIABLES [LIKE 'pattern'];

GLOBAL参数可以获取所有集群连接的参数变量值,SESSION 只能获得当前连接的参数变量值。

例子

gbase> SHOW VARIABLES LIKE '%COMMIT%';
+-----------------------------------------------------------+----------+
| Variable_name                                             | Value    |
+-----------------------------------------------------------+----------+
| _t_gcluster_commit_revert_flag_test                       | 1        |
| autocommit                                                | ON       |
| gbase_tcmalloc_aggressive_decommit_threadhold_load_factor | 0.900000 |
| gbase_tcmalloc_balanced_decommit_threadhold_load_factor   | 0.600000 |
| gcluster_kafka_batch_commit_dml_count                     | 100000   |
| gcluster_kafka_parallel_commit                            | 1        |
+-----------------------------------------------------------+----------+
6 rows in set (Elapsed: 00:00:00.00)

10、SHOW GRANTS (权限信息)

语法树

SHOW GRANTS FOR user_name;

例子

gbase> SHOW GRANTS FOR czg;
+----------------------------------------------------------------------------------------------------------------------------------+
| Grants for czg@%                                                                                                                 |
+----------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'czg'@'%' IDENTIFIED BY PASSWORD '*D75CC763C5551A420D28A227AC294FADE26A2FF2' WITH TASK_PRIORITY 2 |
| GRANT USAGE ON "czg".* TO 'czg'@'%' WITH GRANT OPTION                                                                            |
| GRANT SELECT ON "czg"."test" TO 'czg'@'%'                                                                                        |
+----------------------------------------------------------------------------------------------------------------------------------+
3 rows in set (Elapsed: 00:00:00.02)

11、SHOW INDEX (索引信息)

语法树

SHOW INDEX FROM table_name [FROM database_name];

例子

gbase> show index from czg from czg;
Empty set (Elapsed: 00:00:00.00)

12、SHOW ENGINES (存储引擎信息)

例子

gbase> show engines;
+-----------+---------+-----------------------------------------------------------+--------------+------+------------+
| Engine    | Support | Comment                                                   | Transactions | XA   | Savepoints |
+-----------+---------+-----------------------------------------------------------+--------------+------+------------+
| MRG_GSSYS | YES     | Collection of identical GsSYS tables                      | NO           | NO   | NO         |
| CSV       | YES     | CSV storage engine                                        | NO           | NO   | NO         |
| EXPRESS   | DEFAULT | Express storage engine                                    | YES          | YES  | NO         |
| GsSYS     | YES     | GsSYS engine                                              | NO           | NO   | NO         |
| MEMORY    | YES     | Hash based, stored in memory, useful for temporary tables | NO           | NO   | NO         |
+-----------+---------+-----------------------------------------------------------+--------------+------+------------+
5 rows in set (Elapsed: 00:00:00.32)

13、SHOW GCLUSTER NODES(调度节点信息)

例子

gbase> SHOW GCLUSTER NODES ;
+-----------+----------------+--------------+--------+-----------+
| Id        | ip             | name         | status | datastate |
+-----------+----------------+--------------+--------+-----------+
| 210675904 | 192.168.142.12 | coordinator1 | online |         0 |
+-----------+----------------+--------------+--------+-----------+
1 row in set (Elapsed: 00:00:00.00)

14、SHOW  NODES(数据节点信息)

例子

gbase> SHOW NODES ;
+-----------+----------------+-------+--------------+----------------+--------+-----------+
| Id        | ip             | name  | primary part | duplicate part | status | datastate |
+-----------+----------------+-------+--------------+----------------+--------+-----------+
| 210675904 | 192.168.142.12 | node1 | n1           |                | online |         0 |
+-----------+----------------+-------+--------------+----------------+--------+-----------+
1 row in set (Elapsed: 00:00:00.00)

15、SHOW PROCESSLIST (正在运行的线程信息)

语法树

SHOW [FULL] PROCESSLIST;

例子

gbase> show full processlist;
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+-----------------------+
| Id | Tid    | User            | Host      | db   | Command | Time | State                       | Info                  |
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+-----------------------+
|  1 | 102086 | event_scheduler | localhost | NULL | Daemon  | 1700 | Waiting for next activation | NULL                  |
|  6 | 102536 | root            | localhost | NULL | Query   |    0 | NULL                        | show full processlist |
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+-----------------------+
2 rows in set (Elapsed: 00:00:00.10)gbase> show processlist;
+----+-----------------+-----------+------+---------+------+-----------------------------+------------------+
| Id | User            | Host      | db   | Command | Time | State                       | Info             |
+----+-----------------+-----------+------+---------+------+-----------------------------+------------------+
|  1 | event_scheduler | localhost | NULL | Daemon  | 1705 | Waiting for next activation | NULL             |
|  6 | root            | localhost | NULL | Query   |    0 | NULL                        | show processlist |
+----+-----------------+-----------+------+---------+------+-----------------------------+------------------+
2 rows in set (Elapsed: 00:00:00.00)gbase> show detail processlist;
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+------+------+-------------------------+
| Id | Tid    | User            | Host      | db   | Command | Time | State                       | Lock | Wait | Info                    |
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+------+------+-------------------------+
|  1 | 102086 | event_scheduler | localhost | NULL | Daemon  | 1709 | Waiting for next activation | NULL | NULL | NULL                    |
|  6 | 102536 | root            | localhost | NULL | Query   |    0 | NULL                        | NULL | NULL | show detail processlist |
+----+--------+-----------------+-----------+------+---------+------+-----------------------------+------+------+-------------------------+
2 rows in set (Elapsed: 00:00:00.00)

假设我们有多个调度节点,这个命令只能看到当前节点上的线程信息,并且只有拥有SUPER权限的用户可以看到当前节点的全部线程信息,普通用户只可以看到自己的线程信息。

16、SHOW TABLES (指定数据库的非临时表信息)

语法树

SHOW [FULL] TABLES [FROM database_name] [LIKE ‘pattern’] [where 
conditions];SHOW DISTRIBUTION TABLES [FROM database_name] [LIKE 
‘pattern’];

例子

默认显示

gbase> show tables;
+--------------------------+
| Tables_in_czg            |
+--------------------------+
| a                        |
| alldbvoidrate            |
| b                        |
| czg                      |
| czg_test                 |
| d_admin_kpi_code         |
| hash_tab                 |
| hash_tb_like             |
| jointable                |
| jointable1               |
| moon                     |
| moon_copy                |
| nodedatamap              |
| sg_t_loadconfig_incr     |
| sg_t_loadconfig_incr_odm |
| strtab                   |
| sun                      |
| sun_gbk                  |
| t1                       |
| t_policy_ext_info        |
| test                     |
| test20230302             |
| test_12_05               |
| test_2023                |
| test_20230720            |
| test_2023_09_14          |
| test_table               |
| test_table_1             |
| test_table_2             |
| test_table_3             |
| testtab                  |
| testtab_copy             |
| tmp                      |
+--------------------------+
33 rows in set (Elapsed: 00:00:00.00)

显示表类型,是基表还是试图。

gbase> show full tables;
+--------------------------+------------+
| Tables_in_czg            | Table_type |
+--------------------------+------------+
| a                        | BASE TABLE |
| alldbvoidrate            | BASE TABLE |
| b                        | BASE TABLE |
| czg                      | BASE TABLE |
| czg_test                 | BASE TABLE |
| d_admin_kpi_code         | BASE TABLE |
| hash_tab                 | BASE TABLE |
| hash_tb_like             | BASE TABLE |
| jointable                | BASE TABLE |
| jointable1               | BASE TABLE |
| moon                     | BASE TABLE |
| moon_copy                | BASE TABLE |
| nodedatamap              | BASE TABLE |
| sg_t_loadconfig_incr     | BASE TABLE |
| sg_t_loadconfig_incr_odm | BASE TABLE |
| strtab                   | BASE TABLE |
| sun                      | BASE TABLE |
| sun_gbk                  | BASE TABLE |
| t1                       | BASE TABLE |
| t_policy_ext_info        | BASE TABLE |
| test                     | BASE TABLE |
| test20230302             | BASE TABLE |
| test_12_05               | BASE TABLE |
| test_2023                | BASE TABLE |
| test_20230720            | BASE TABLE |
| test_2023_09_14          | BASE TABLE |
| test_table               | BASE TABLE |
| test_table_1             | BASE TABLE |
| test_table_2             | BASE TABLE |
| test_table_3             | BASE TABLE |
| testtab                  | BASE TABLE |
| testtab_copy             | BASE TABLE |
| tmp                      | BASE TABLE |
+--------------------------+------------+
33 rows in set (Elapsed: 00:00:00.56)

显示此表是复制表还是分布表

gbase> SHOW DISTRIBUTION TABLES;
+--------+--------------------------+-------------+
| dbName | tbName                   | isReplicate |
+--------+--------------------------+-------------+
| czg    | hash_tb_like             | NO          |
| czg    | moon_copy                | NO          |
| czg    | czg                      | NO          |
| czg    | test20230302             | NO          |
| czg    | alldbvoidrate            | NO          |
| czg    | test_table_2             | NO          |
| czg    | jointable                | NO          |
| czg    | test_table_1             | NO          |
| czg    | d_admin_kpi_code         | NO          |
| czg    | b                        | NO          |
| czg    | nodedatamap              | NO          |
| czg    | test_12_05               | NO          |
| czg    | sg_t_loadconfig_incr     | NO          |
| czg    | test_table_3             | NO          |
| czg    | test_table               | NO          |
| czg    | sun                      | NO          |
| czg    | testtab_copy             | NO          |
| czg    | sun_gbk                  | NO          |
| czg    | testtab                  | NO          |
| czg    | sg_t_loadconfig_incr_odm | NO          |
| czg    | czg_test                 | NO          |
| czg    | moon                     | NO          |
| czg    | jointable1               | NO          |
| czg    | test_2023_09_14          | NO          |
| czg    | test                     | NO          |
| czg    | tmp                      | NO          |
| czg    | t_policy_ext_info        | NO          |
| czg    | hash_tab                 | NO          |
| czg    | strtab                   | NO          |
| czg    | a                        | NO          |
| czg    | t1                       | NO          |
| czg    | test_2023                | NO          |
| czg    | test_20230720            | NO          |
+--------+--------------------------+-------------+
33 rows in set (Elapsed: 00:00:00.00)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/81766.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前后端分离技术逐步深入,让你更加深入理解Nginx+Tomcat

你提到了熟悉Tomcat和Nginx服务器的配置,以及应用前后端分离技术,请解释一下Tomcat和Nginx的主要作用是什么,以及在前后端分离中它们的角色是什么? 标准回答: Tomcat是一个Java应用服务器,主要用于运行Jav…

Linux面试题

当准备 Linux 面试时,以下是一些可能会遇到的常见 Linux 面试题: 1. 什么是Linux?解释一下Linux操作系统的特点。 2. 什么是Linux内核?Linux内核的作用是什么? 3. 如何在Linux系统上查看当前的IP地址和子网掩码&#…

rk平台快捷键进入uboot模式和烧录模式

(1)进入U-boot命令行模式 上电时,多次按下ctrlc按键(2)进入maskrom烧录模式 方法一:上电时(或者reboot时),多次按下ctrlb 方法二:在uboot命令 手敲rbrom

Java 通过页码范围提取新的文档(docx、pdf)

客户有一个新的需求。控制用户下载文档的页数。比如。我设置只开放10页。那就要我们去做截取文档。pdf自带有实现的方式。docx暂时没找到开源的。我这边处理的docx。是通过转换成pdf。通过截取pdf后再转成docx去实现的 工具类如下: import java.io.FileOutputStream…

git及dbc的学习

1)git的使用方法 Command line instructions You can also upload existing files from your computer using the instructions below. Git global setup git config --global user.name "username" git config --global user.email "xx…

SpringMvc高级(拦截器和文件上传下载)

拦截器(Interceptor)是一种常用的设计模式,在软件工程领域被广泛应用。拦截器通常被用来处理各种请求和响应,可以在请求发送前或响应返回后进行一系列的操作和处理。拦截器可以用于请求身份认证、日志记录、性能优化、权限控制、数…

vue3 - 使用reactive定义响应式数据进行赋值时,视图没有改变,值已经改变的解决方案

问题: 在Vue 3.0 中我们使用 reactive() 定义的响应式数据的时候,当是一个数组或对象时,我们直接进行赋值,发现数据已经修改成功,但是页⾯并没有自动渲染成最新的数据;这是为什么呢? 就如同官网…

线性代数的本质(二)——线性变换与矩阵

文章目录 线性变换与矩阵线性变换与二阶方阵常见的线性变换复合变换与矩阵乘法矩阵的定义列空间与基矩阵的秩逆变换与逆矩阵 线性变换与矩阵 线性变换与二阶方阵 本节从二维平面出发学习线性代数。通常选用平面坐标系 O x y Oxy Oxy ,基向量为 i , j \mathbf i,…

数据结构-时间复杂度/空间复杂度

Hello,好久没有更新了哦,已经开始学习数据结构了,这篇文章呢就是对刚学数据结构所接触到的时间复杂度进行一个分享哦,如果有错误之处,大家记得拍拍我哦~ 既然要讨论时间/空间复杂度,那我们就得知道时间/空…

SpringBoot国际化配置组件支持本地配置和数据库配置

文章目录 0. 前言i18n-spring-boot-starter1. 使用方式0.引入依赖1.配置项2.初始化国际化配置表3.如何使用 2. 核心源码实现一个拦截器I18nInterceptorI18nMessageResource 加载国际化配置 3.源码地址 0. 前言 写个了原生的SpringBoot国际化配置组件支持本地配置和数据库配置 背…

tdesign的文件上传(微信小程序+idea的springboot)

目录 1. springboot后端 1.1 FileController.java 1.2 listener文件的ErpApplicationListener.java 1.3 【重点!】FileServiceImpl层 1.4 IFileService 1.5 StringUtil通用类 1.6 主程序加一个监听器 1.7 application.yml文件 2. 微信小程序端 2.1 TDesign的…

latex如何保证图片和文字的相对位置不变

文章目录 latex如何保证图片与文字的相对位置不变?解决方法: latex如何保证图片与文字的相对位置不变? 解决方法: 加入宏包\usepackage{float} 在figure环境后面加入参数H \begin{figure}[H]\centering\includegraphics[width…

随机产生两个数在屏幕上打印,例如6*7=? 让学生输入答案,若正确打印答对了,否则提示学生重做,直到答对为止(小游戏)

#include<stdio.h> #include<stdlib.h> #include<time.h>//时间的库函数 int main() {int i 0;srand(time(0));//随机种子初始化int num1 rand() %10;//随机数int num2 rand() %10;printf("%d * %d ?\n", num1, num2);printf("请输入答案…

阿里云无影电脑:免费体验无影云电脑3个月

阿里云无影云电脑免费领取流程&#xff0c;免费无影云电脑配置为4核8G&#xff0c;可以免费使用3个月&#xff0c;阿里云百科分享阿里云无影云电脑&#xff08;云桌面&#xff09;免费申请入口、申请流程及免费使用限制条件说明&#xff1a; 目录 阿里云无影云电脑免费申请入…

【C++初阶】动态内存管理

​&#x1f47b;内容专栏&#xff1a; C/C编程 &#x1f428;本文概括&#xff1a; C/C内存分布、C语言动态内存管理、C动态内存管理、operator new与operator delete函数、new和delete的实现原理、定位new表达式、常见面试问题等。 &#x1f43c;本文作者&#xff1a; 阿四啊 …

SQL2 查询多列

描述 题目&#xff1a;现在运营同学想要用户的设备id对应的性别、年龄和学校的数据&#xff0c;请你取出相应数据 示例&#xff1a;user_profile iddevice_idgenderageuniversityprovince12138male21北京大学Beijing23214male复旦大学Shanghai36543female20北京大学Beijing42…

CSRF和SSRF有什么不同?

文章目录 CSRF复现SSRF复现启动环境漏洞复现探测存活IP和端口服务计划任务反弹shell 区别 CSRF复现 打开dvwa&#xff0c;将难度调为low&#xff0c;点击CSRF&#xff0c;打开后发现有一个修改密码的输入框&#xff1a; 在这里修改密码&#xff0c;并用bp抓包&#xff0c;在…

C++实现观察者模式(包含源码)

文章目录 观察者模式一、基本概念二、实现方式三、角色四、过程五、结构图六、构建思路七、完整代码 观察者模式 一、基本概念 观察者模式&#xff08;又被称为模型&#xff08;Model&#xff09;-视图&#xff08;View&#xff09;模式&#xff09;是软件设计模式的一种。在…

开启编程之门

自我介绍 目前已经大二了&#xff0c;计算机专业在读&#xff0c;是一个热爱编程&#xff0c;做事踏实专注的人。转眼间一年已经过去了&#xff0c;也接触编程一年了&#xff0c;但开始并没有对所学所想进行很好的总结和输出&#xff0c;这一年也有了新的很多感悟与心得&#x…

浅谈双十一背后的支付宝LDC架构和其CAP分析

本人汤波&#xff0c;superthem.com 圆领超级个体创始人&#xff0c;Github page地址&#xff1a;https://tbwork.github.io/ 看到很多人在盗用我的文章&#xff0c;还标记成原创&#xff0c;进行收费&#xff0c;非常令人作呕。 我的所有技术文章全部免费阅读&#xff0c;大家…