1、attach
db2 "alter table test attach partition part1 starting '01/01/2016' ending '31/12/2016' from table test_part1"
db2 commint
db2 set integrity for test immediate checked
db2 commit
2、detach
db2 alter table test detach partition part1 into table test_part1
db2 commit
db2 "alter table test attach partition part1 starting '01/01/2016' ending '31/12/2016' from table test_part1"
db2 commint
db2 set integrity for test immediate checked
db2 commit
2、detach
db2 alter table test detach partition part1 into table test_part1
db2 commit
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26224914/viewspace-2122734/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26224914/viewspace-2122734/