Memmedaga Memmedov
2020-12-02 13:30:41 UTC
hi,
I want to ask a question about SQL/MP add partition. I have 'payment' table and it is nearly %97 full of record.
I want to add partition using 'date' column, is it possible?
Because I know that if you use 'FIRST KEY' command, the name of primary key first column has to be same.
Do you think this below command works? Otherwise, I will copy data, purge table, create table primary key 'date' firstly and then copy datas.
alter table payment
add partition payment2
catalog xxxxx
extent (xx, xx) maxextents xxx
FIRST KEY (20201231); (YYYYMMDD-31 Dec 2020)
create table payment
(
card_number
, date
, branch_id
, sequence_number
, reserve_field
, PRIMARY KEY
(
card_number
, date
, branch_id
, sequence_number
)
)
I want to ask a question about SQL/MP add partition. I have 'payment' table and it is nearly %97 full of record.
I want to add partition using 'date' column, is it possible?
Because I know that if you use 'FIRST KEY' command, the name of primary key first column has to be same.
Do you think this below command works? Otherwise, I will copy data, purge table, create table primary key 'date' firstly and then copy datas.
alter table payment
add partition payment2
catalog xxxxx
extent (xx, xx) maxextents xxx
FIRST KEY (20201231); (YYYYMMDD-31 Dec 2020)
create table payment
(
card_number
, date
, branch_id
, sequence_number
, reserve_field
, PRIMARY KEY
(
card_number
, date
, branch_id
, sequence_number
)
)