GBASE南大通用GBase 8s数据库-元数据查询(2)

本文详细介绍了在GBase8s数据库系统中执行的各种查询操作,包括唯一索引查询、非唯一索引、默认值设置、检查约束、数据空间、Chunk和VP视图、物理日志和逻辑日志的查看,以及用户和会话管理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

GBASE南大通用GBase 8s查询数据库

唯一索引

database <db_name>;

select * from sysconstraints where constrtype = 'U';
> select * from sysconstraints where constrtype = 'U';



constrid    6
constrname  uni_dept_deptname
owner       gbasedbt
tabid       109
constrtype  U
idxname      109_6
collation   zh_CN.57372

constrid    9
constrname  uni_employee_showname
owner       gbasedbt
tabid       110
constrtype  U
idxname      110_9
collation   zh_CN.57372

2 row(s) retrieved.

> 

NULL

database <db_name>;

select * from sysconstraints where constrtype = 'N';

> select * from sysconstraints where constrtype = 'N';



constrid    1
constrname  n106_1
owner       gbasedbt
tabid       106
constrtype  N
idxname     
collation   zh_CN.57372

constrid    2
constrname  n107_2
owner       gbasedbt
tabid       107
constrtype  N
idxname     
collation   zh_CN.57372

constrid    7
constrname  n109_7
owner       gbasedbt
tabid       109
constrtype  N
idxname     
collation   zh_CN.57372

constrid    17
constrname  n111_17
owner       gbasedbt
tabid       111
constrtype  N
idxname     
collation   zh_CN.57372

constrid    18
constrname  n111_18
owner       gbasedbt
tabid       111
constrtype  N
idxname     
collation   zh_CN.57372

5 row(s) retrieved.

> 

默认值

database <db_name>;

select * from sysdefaults where tabid = <tab_id>;
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值