分割槽表attach detach操作

flywiththewind發表於2016-07-29
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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2122734/,如需轉載,請註明出處,否則將追究法律責任。

相關文章