返回首页

gbase数据、南大通用产品文档:GBase8s

更新日期:2024年09月11日

VP 列表
在8s 集群节点监控导航栏,点击数据库监控的VP 列表,即进入VP 列表监
控界面。
该界面以列表的方式显示数据库中VP 的情况。
VP 列表界面显示如下:

日期类型。支持的范围是“0001-01-01”到“9999-12-31”。
GBase 8a MPP Cluster 以“YYYY-MM-DD”格式显示DATE 值。
示例
示例1:插入一个标准的DATE 值。

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
633
gbase> CREATE TABLE products (productDate DATE);
Query OK, 0 rows affected
gbase> INSERT INTO products(productDate) VALUES('2010-09-01');
Query OK, 1 row affected
gbase> SELECT productDate FROM products;
+-------------+
| productDate |
+-------------+
| 2010-09-01
|
+-------------+
1 row in set
示例2:插入一个NULL 值。
gbase> CREATE TABLE products (productDate DATE);
Query OK, 0 rows affected
gbase> INSERT INTO products(productDate) VALUES(NULL);
Query OK, 1 row affected
gbase> SELECT productDate FROM products;
+-------------+
| productDate |
+-------------+
| NULL
|
+-------------+
1 rows in set
示例3:插入一个非法的DATE 值,系统报告错误信息。
gbase> CREATE TABLE products (productDate DATE);
Query OK, 0 rows affected
gbase> INSERT INTO products(productDate) VALUES('2010-09-31');
ERROR 1292 (22007): Incorrect date value: '2010-09-31' for column 'productDate'
at row 1

SUMMARY_STATEMENT_COUNT
显示数据库汇聚各节点(数据库节点)当前时刻执行的五类语句(SELECT、INSERT、
UPDATE、DELETE、MERGE INTO)和(DDL、DML、DCL)统计信息。
名称
类型
描述
user_name
text
用户名。
select_count
numeric
select 语句统计结果。
update_count
numeric
update 语句统计结果。
insert_count
numeric
insert 语句统计结果。
delete_count
numeric
delete 语句统计结果。
mergeinto_count
numeric
merge into 语句统计结果。
ddl_count
numeric
DDL 语句的数量。
dml_count
numeric
DML 语句的数量。
dcl_count
numeric
DCL 语句的数量。
total_select_elapse
numeric
总select 的时间花费(单位:微秒)。
avg_select_elapse
bigint
平均select 的时间花费(单位:微秒)。
max_select_elapse
bigint
最大select 的时间花费(单位:微秒)。
min_select_elapse
bigint
最小select 的时间花费(单位:微秒)。
total_update_elapse
numeric
总update 的时间花费(单位:微秒)。
avg_update_elapse
bigint
平均update 的时间花费(单位:微秒)。
max_update_elapse
bigint
最大update 的时间花费(单位:微秒)。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1023
名称
类型
描述
min_update_elapse
bigint
最小update 的时间花费(单位:微秒)。
total_insert_elapse
numeric
总insert 的时间花费(单位:微秒)。
avg_insert_elapse
bigint
平均insert 的时间花费(单位:微秒)。
max_insert_elapse
bigint
最大insert 的时间花费(单位:微秒)。
min_insert_elapse
bigint
最小insert 的时间花费(单位:微秒)。
total_delete_elapse
numeric
总delete 的时间花费(单位:微秒)。
avg_delete_elapse
bigint
平均delete 的时间花费(单位:微秒)。
max_delete_elapse
bigint
最大delete 的时间花费(单位:微秒)。
min_delete_elapse
bigint
最小delete 的时间花费(单位:微秒)。