GBase 8s
运维管理
文章

查询包含blobclob字段的表

GBase社区管理员
发表于2024-01-30 16:21:13105次浏览2个评论

创建表:

create table tblob(col1 blob,col2 clob);

查询库中包含clob字段的表:

select tabname,colname as clobcol from systables t,syscolumns c
where t.tabid=c.tabid
and c.coltype=41
and t.tabid>99
and c.extended_id=11  --clob
--and c.extended_id=10  --blob
;

输出:

tabname  tblob
clobcol  col2

查询到 1 行。

评论

登录后才可以发表评论
用户头像
levvel发表于 4个月前
进来看看,应该有收获
用户头像
levvel发表于 2个月前
海纳百川有容乃大,壁立千仞无欲则刚