1.如何知道一个索引是分区索引还是非分区索引?
2.分区表上一定要有非分区索引吗?
sycat.indexes和syscat.indexpartitions
1.创建表
1).首先以root权限执行下列命令
touch /tmp/tbsp01
touch /tmp/tbsp02
touch /tmp/tbsp03
chown ba5oltp1 /tmp/tbsp*
2).创建分区要使用的表空间
[ba5oltp1@db2cls02 ~]$ db2 "create tablespace tbsp01 managed by database using (FILE '/tmp/tbsp01' 3000)"
DB20000I The SQL command completed successfully.
[ba5oltp1@db2cls02 ~]$ db2 "create tablespace tbsp02 managed

本文介绍了DB2中如何创建分区表,包括步骤如创建表空间、测试表和索引,以及如何通过查询syscat.indexes和syscat.indexpartitions视图来区分分区索引与非分区索引。
最低0.47元/天 解锁文章
2181

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



