DB2表查看/压缩/

1.查看表字段以及数据类型describe table命令。

db2 describe table db2inst1.empoyee

如果不知道表名,可以通过list tables命令查看

通过list tables for schema 可查看某个模式下的表名、视图和alias别名

通过list tables for all 可查看所有模式下的表名、视图和alias别名。

通过list tables 可查看以当前连接用户作为模式名下的表名、视图等,或通过syscat.tables系统视图查看表的定义、所属的表空间等。

猜你喜欢

转载自blog.csdn.net/m0_38002798/article/details/80996702
今日推荐