GBase 8s中的表和视图都保存在当前数据库的systables表中,以tabtype进行区分。
在mydb数据库中执行select * from systables where tabid >= 100 and tabtype = 'V';
在mydb数据库中执行select * from systables where tabid >= 100 and tabtype = 'T';
本文介绍了如何在GBase8s数据库中通过SQL查询来区分和获取当前数据库mydb中的表和视图。通过查询systables表,使用tabtype字段过滤,可以分别得到tabtype为'V'(视图)和'T'(表)的详细信息。
GBase 8s中的表和视图都保存在当前数据库的systables表中,以tabtype进行区分。
在mydb数据库中执行select * from systables where tabid >= 100 and tabtype = 'V';
在mydb数据库中执行select * from systables where tabid >= 100 and tabtype = 'T';

被折叠的 条评论
为什么被折叠?
