GBase 8a MPP常用信息查看

select version();

/*查看集群版本*/

select vc();

/*查看当前所在vc*/

select database();

/*查看当前所在数据库*/

select user();

/*查看当前所登用户*/

select dbName,tbName,isReplicate,hash_column from gbase.table_distribution where dbname='dbname' and tbname like 'tbname';

/*查看表类型以及hash分布键*/

select * from information_schema.tables where TABLE_SCHEMA ='test';

/*查看当前集群中test数据库中所有表信息*/

select * from information_schema.tables where TABLE_TYPE like 'VIEW';

/*查看当前集群中所有的视图信息*/

select TB_NAME,IP,ELAPSED_TIME,AVG_SPEED,PROGRESS,SKIPPED_RECORDS from information_schema.load_status order by tb_name;

/*查看加载进度*/

select table_schema,table_name,table_data_size,table_storage_size from information_schema.cluster_tables where table_schema='test' and table_name='test';

/*查看表大小*/

select column_name,table_name,column_type from information_schema.columns;

/*查看列属性*/

select dbName,tbName,isReplicate,hash_column from gbase.table_distribution where dbName = 'usr_sod' and hash_column is null;

/*查看某表的hash分布键*/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值