00问答网
所有问题
当前搜索:
db2列出所有schema
请问怎么查询
DB2
数据库的
schema
!!!我是菜鸟,麻烦说详细点呀...
答:
1、连接数据库omu su omu
db2
connect to omu list active databases 2、执行schema查询 select * from sysibm.sys
schemata
db2
常用命令
答:
2、
列出所有
系统表
db2
list tables for system 3、列出所有表 db2 list tables for all 4、 列出系统表 db2 list tables for system 5、列出用户表 db2 list tables for user 6、 列出特定用户表 db2 list tables for
schema
[user]参考资料来源:百度百科—
DB2
...
db2
list tables for
schema
的命令是什么
答:
db2
select * from syscat.tables where tab
schema
=<schema name> or simply db2 select * from syscat.tables order by tabschema, tabname similarly, all column information is stored in syscat.columns db2 select * from syscat.columns where tabname= ...
DB2
中如何查询一个数据库中有多少张表
答:
当然也可以用 select count(*) from syscat.tables where tab
schema
='GP'查出
所有
表的数量。再查出有多少张系统表,就是在SYSIBM、SYSTOOLS下的表数目。相减就可以了。我用的是
DB2
V9.7。
DB2
数据库在linux操作系统的指令有哪些?
答:
dbm cfg using 参数名 参数值 6.读数据库的配置
DB2
connect to o_yd user DB2 using pwd DB2 get db cfg for o_yd 7.写数据库的配置 DB2 connect to o_yd user DB2 using pwd DB2 update db cfg for o_yd using 参数名 参数值 8.关闭
所有
应用连接 DB2 force application all DB2 ...
怎么样新建 SCHMA 在
DB2
答:
create
schema
your_name ;这个schema是创建用户是就会创建一个跟用户名一样的schema 要是想改跟用户名一样的schema可以这样写:set schema 名字。也可以在控制中心,找到对应的数据库,再找到schema, 右击创建,最后一步是,点显示SQL,就可以看到怎么创建schema的语句了。
SQL实战新手入门:IBM
DB2
LUW系统目录
答:
Scale Nulls name
schema
VIEW
SCHEMA
SYSIBM VARCHAR No VIEWNAME SYSIBM VARCHAR No QUALIFIER SYSIBM VARCHAR No FUNC_PATH SYSIBM VARCHAR No TEXT SYSIBM CLOB No record(s) selected 返回目录 SQL实战新手入门 编辑推荐 Oracle索引技术 高性能MySQL lishixinzhi/Article/program/
DB2
/201311/21949 ...
。
db2
有2个
schema
, 04, 06 , 都有同一张表address_txn ,如何比较2个...
答:
很简单,查询系统表 syscat.columns 表,首先判断字段的个数是不是一样,如果是一样,将两个表进行关联,对比他们的字段名称,字段类型,字段长度。
有没有办法统计一个
DB2
数据库里
所有
表一共的记录条数?
答:
select * from SYSCAT.TABLES where tab
schema
='账号名'然后这个表里的card字段就是各表记录数,sum(card)就是了
如何更改
db2
的
schema
答:
set the current
schema
for
db2
admin to kjc:SET CURRENT
SCHEMA
= 'KJC'if you want to change schema for those tables you need to export the DDL and manually change the schema name, then export the data, drop db, create new db, import DDL and load the data back ...
1
2
3
4
涓嬩竴椤
其他人还搜
db2删除schema下所有表
db2列出所有表
db2列出所有数据表
db2列出所有数据库
db2schema
db2指定schema
db2修改schema名称
db2切换schema
db2查看schema