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>;