db2 查看所有表和表结构语句

来源:互联网 发布:java并发库视频教程 编辑:程序博客网 时间:2024/04/29 16:18

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;  //查看表结构
1 0
原创粉丝点击