这篇文章主要介绍了数据库中admin_move_table如何在线更改分区键,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
db2 "call sysproc.admin_move_table(
'RECV',
'TRANS_SERIAL_TABLE',
'',
'',
'',
'',
'',
'(CREATE_TIME) (PART PART1 STARTING (''2000-01-01'') ENDING (''2001-01-01'') EXCLUSIVE,
PART PART2 STARTING (''2001-01-01'') ENDING (''2002-01-01'') EXCLUSIVE)',
'',
'',
'MOVE'
)"
CREATE TABLE "RECV "."TRANS_SERIAL_TABLE" (
"ID" INTEGER ,
"START_TIME" TIMESTAMP ,
"CREATE_TIME" TIMESTAMP )
PARTITION BY RANGE("START_TIME")
(PART "P1" STARTING('2000-01-01-00.00.00.000000') ENDING('2001-01-01-00.00.00.000000') EXCLUSIVE IN "ISSUE",
PART "P2" STARTING('2001-01-01-00.00.00.000000') ENDING('2002-01-01-00.00.00.000000') EXCLUSIVE IN "ISSUE")
ORGANIZE BY ROW;
db2 drop table recv.trans_serial_table
感谢你能够认真阅读完这篇文章,希望小编分享的“数据库中admin_move_table如何在线更改分区键”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!
原创文章,作者:306829225,如若转载,请注明出处:https://blog.ytso.com/204868.html