返回首页

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

更新日期:2024年09月11日

取值:[nozip|highz|rapidz|newrapidz|stdz]
默认值:No Setting
说明:新版参数,用于指定新版本数值型和字符型的压缩算法。
不设置时show variables 显示“NO Setting”。
压缩方式取值:

GBase 8a MPP Cluster 参数手册
文档版本2022-06-07
南大通用数据技术股份有限公司
90
Nozip:没有压缩
HighZ:高压缩比
RapidZ:快速压缩
NewRapidZ
STDZ
压缩方式中的字符串不区分大小写。
修改方式:可在配置文件中修改值。适用于global 范围。

文件路径
使用unixODBC 提供的命令“odbcinst -j”可以查找到odbc.ini 的路径。如下所示:


GBase UP 产品手册 6 应用开发指南
文档版本04(2021-04-21) 南大通用数据技术股份有限公司 1145
# odbcinst -j
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
修改文件
在/etc/odbc.ini 文件中加入:
[test]
Driver = GBase 8a ODBC 8.3 Driver
DATABASE = test
DESCRIPTION = GBase 8a ODBC 8.3 Driver DSN
SERVER = 192.168.111.96
UID = root
PASSWORD = 1

功能说明
列出一个给定数据库的非临时表。
注意
若用户没有对表的权限,在使用SHOW TABLES 时不会输出该表。
语法格式
SHOW
[FULL]
TABLES
[FROM
[vc_name.]database_name]
[WHERE
conditions] [LIKE ‘pattern’];
表5- 119 参数说明
参数名称


FULL
输出列Table_type。表显示BASE TABLE,视图显示VIEW
vc_name
vc 名,可选项。
database_name
数据库名。
pattern
一个可以包含SQL “%”和“_”通配符的字符串。
conditions
过滤条件。
示例
示例1:列出demo 数据库非临时表。
示例中所用的表及数据:
USE vc1.demo;
Create table t1(a int);
Create table d1(a int);
Create view t1_v as select * from t1;
Create view v_d1 as select * from d1;
显示vc1.demo 库下的非临时表:
gbase> SHOW TABLES FROM vc1.demo;
+----------------+
| Tables_in_demo |
+----------------+
| d1
|
| t1
|
| t1_v
|
| v_d1
|

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
1119
+----------------+
4 rows in set (Elapsed: 00:00:00.00)
使用FULL 修饰语显示demo 库下的非临时表:
gbase> SHOW FULL TABLES FROM vc1.demo;
+----------------+------------+
| Tables_in_demo | Table_type |
+----------------+------------+
| d1
| BASE TABLE |
| t1
| BASE TABLE |
| t1_v
| VIEW
|
| v_d1
| VIEW
|
+----------------+------------+
4 rows in set (Elapsed: 00:00:00.00)
显示demo 库下以t 开头的非临时表:
gbase> SHOW FULL TABLES FROM demo LIKE 't%';
+---------------------+------------+
| Tables_in_demo (t%) | Table_type |
+---------------------+------------+
| t1
| BASE TABLE |
| t1_v
| VIEW
|
+---------------------+------------+
2 rows in set (Elapsed: 00:00:00.00)
显示demo 库下的视图:
gbase> SHOW FULL TABLES FROM demo where table_type='VIEW';
+----------------+------------+
| Tables_in_demo | Table_type |
+----------------+------------+
| t1_v
| VIEW
|
| v_d1
| VIEW
|
+----------------+------------+
2 rows in set (Elapsed: 00:00:00.00)
gbase> show full tables from db1 where Table_type = 'VIEW' like 't%';
+---------------+------------+
| Tables_in_db1 | Table_type |
+---------------+------------+
| t1
| BASE TABLE |
+---------------+------------+
1 row in set (Elapsed: 00:00:00.01)

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
1120