返回首页

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

更新日期:2024年09月11日

GetDouble 方法 (String)
根据给定的列名称,获取指定列的双精度浮点数值。

语法
[Visual Basic]
Public Function GetDouble ( _

column As String _
) As Double
[C#]
public double GetDouble(

string column
)

参数
1) column :列名称



GBase 8a 程序员手册ADO.NET 篇
南大通用数据技术股份有限公司

- 225 -

问题现象
HeapUsed(40316342048,97627136,8491566256) 和SystemUsed(212425116840,0,0)
代表什么?
处理方法

HeapUsed(40316342048,97627136,8491566256)表示各堆内使用了的内存大小,
相当于show status 里的heap used size;

SystemUsed(212425116840,0,0)指各堆在系统里malloc 的大小;

顺序就是cell(或者dc)、large、temp。

GBase 8a MPP Cluster 最佳实践
5 FAQ
文档版本(2022-02-11)
南大通用数据技术股份有限公司
56
gbase> show status like '%heap%';
+----------------------------------+-----------+
| Variable_name
| Value
|
+----------------------------------+-----------+
| 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
| 268430464 |
| Meminfo_temp_heap_malloc_size
| 0
|
| Meminfo_temp_heap_total_size
| 268435456 |
| Meminfo_temp_heap_used_size
| 4992
|
+----------------------------------+-----------+
12 rows in set (Elapsed: 00:00:00.01)
说明
HeapUsed 对应show status 的used_size,SystemUsed 对应malloc_size,而total_size 受到
下面参数的控制。
#gbase_heap_data=512M
#gbase_heap_temp=256M
#gbase_heap_large=256M

GBase 8a MPP Cluster 最佳实践
5 FAQ
文档版本(2022-02-11)
南大通用数据技术股份有限公司
57

GBase 8a MPP Cluster 支持三种注释风格:
“#”:单行注释;
“--”:单行注释,以“--”开头到该行结束为注释内容。注意“--”(引导号)
注释要求第二个引导号后至少跟着一个空格;

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
623
“/*注释内容*/”:这种注释支持注释内容为一行或者连续的多行,还支持注释
内容在行中间。/**/这个封闭的序列不一定在同一行表示,因此该语法允许多行
注释。
注意

“--”(引导号)注释风格要求第二个引导号后至少跟着一个空格。
这个语法和标准的SQL 注释风格略有不同。
示例
示例1:使用“#”注释。
gbase> SELECT 1+1 FROM t;# This comment continues to the END of line
+-----+
| 1+1 |
+-----+
|
2 |
+-----+
1 row in set
示例2:使用“--”注释。
gbase> SELECT 1+1 FROM t;-- This comment continues to the END of line
+-----+
| 1+1 |
+-----+
|
2 |
+-----+
1 row in set
示例3:使用“/*单行*/”注释。
gbase> SELECT 1 /* this is an in-line comment */ + 1 FROM t;
+--------+
| 1
+ 1 |
+--------+
|
2 |
+--------+
1 row in set
示例4:使用“/*多行*/”注释。
gbase> SELECT 1+
/*
this is a
multiple-line comment

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
624
*/
1 FROM t;
+--------------+
| 1
+
1 |
+--------------+
|
2 |
+--------------+
1 row in set