ITPub博客

首页 > 数据库 > 数据库开发技术 > 分区表attach detach操作

分区表attach detach操作

原创 数据库开发技术 作者:flywiththewind 时间:2016-07-29 16:32:22 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/26224914/viewspace-2122734/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-08-30

  • 博文量
    146
  • 访问量
    207820