<6>重新组织表及其索引
重组表数据 reorg table tableName index indexName(根据索引)
重组表索引 reorg indexes all for table tableName
<7>重新收集表及其索引统计信息
runstats on table tableName for indexes all(跑批前重新收集所用表信息可以提高效率)
<8>DB2自动增长主键方法
IDENTITY列
generated always as identity(start with 1,increment by 1)将一个字段指定为自增长型字段,放在数据类型后。
SEQUENCE对象(序列)
3、数据控制语言(DCL:grant,revoke)
将表的特权授予用户
grant select,update,delete on table tableName to user userName with grant option
将包特权授予同组
grant control on package packageName on group groupName with grant option