MySQL Forums
Forum List  »  Newbie

MySQL List partition
Posted by: kalanidhi gurunathan
Date: June 03, 2016 01:58AM

Hi,
I want to know, is there a way to modify the values in List Partition.

Ex. i have created the table like
CREATE TABLE employees (
id INT NOT NULL,
fname VARCHAR(30),
lname VARCHAR(30),
hired DATE NOT NULL DEFAULT '1970-01-01',
separated DATE NOT NULL DEFAULT '9999-12-31',
job_code INT,
store_id INT
)
PARTITION BY LIST(store_id) (
PARTITION pNorth VALUES IN (3,5,6,9,17),
PARTITION pEast VALUES IN (1,2,10,11,19,20),
PARTITION pWest VALUES IN (4,12,13,14,18),
PARTITION pCentral VALUES IN (7,8,15,16)
);


after some time i want to add new store_id into pNorth and also i may also want to remove the some store id from pEast.

Is it possible in MySQL.

Thanks
Kalanidhi

Options: ReplyQuote


Subject
Written By
Posted
MySQL List partition
June 03, 2016 01:58AM
June 03, 2016 10:21AM
June 04, 2016 05:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.