(类似Oracle下的: select * from user_tables;)
另外请大家推荐一些有用的DB2学习资源,谢谢啦
7 个解决方案
#1
例子
select * from syscat.tables where tabschema='db2admin'
select * from syscat.tables where tabschema='db2admin'
#2
Select CREATOR,NAME,TYPE,REMARKS,COLCOUNT From SYSIBM.SYSTABLES Where TYPE='T' AND CREATOR Not In('SYSCAT','SYSIBM','SYSSTAT') Order by NAME
#3
用二位的sql列不出来啊
#4
select * from syscat.tables where tabschema='在这里请填写你的当前用户名'
#5
#6
Select * Where TYPE='T' AND CREATOR Not In('SYSCAT','SYSIBM','SYSSTAT') Order by NAME
#7
楼上的sql确实查不出来。
用如下语句可以: list tables for schema "用户名"
例如: list tables for schema "db2admin"
用如下语句可以: list tables for schema "用户名"
例如: list tables for schema "db2admin"
#1
例子
select * from syscat.tables where tabschema='db2admin'
select * from syscat.tables where tabschema='db2admin'
#2
Select CREATOR,NAME,TYPE,REMARKS,COLCOUNT From SYSIBM.SYSTABLES Where TYPE='T' AND CREATOR Not In('SYSCAT','SYSIBM','SYSSTAT') Order by NAME
#3
用二位的sql列不出来啊
#4
select * from syscat.tables where tabschema='在这里请填写你的当前用户名'
#5
#6
Select * Where TYPE='T' AND CREATOR Not In('SYSCAT','SYSIBM','SYSSTAT') Order by NAME
#7
楼上的sql确实查不出来。
用如下语句可以: list tables for schema "用户名"
例如: list tables for schema "db2admin"
用如下语句可以: list tables for schema "用户名"
例如: list tables for schema "db2admin"