select name from sysibm.systables where type='T' and creator='DB2ADMIN' type:数据库表用T表示;数据库视图用V表示 creator:数据库对象的创建者
select tabname from syscat.tables where tabschema = current schema ;// 获取当前模式下面的所有用户表
select * from sysibm.columns where table_schema = test and table_name = test; //查看表结构
本文介绍了使用SQL查询语句获取数据库中当前模式下所有用户表,并详细展示了如何查看特定表的结构。
3387

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



