MySQL Forums :: Partitioning :: How can i partition this table?


Advanced Search

How can i partition this table?
Posted by: spalat palat ()
Date: December 27, 2016 02:27PM

Hi,

i have a table and i need partition first for a char column and then for a date.
The first column its site_id ('AAA','BBB','CCC')

This is the table:

CREATE TABLE test
(
SITE_ID VARCHAR(3) NOT NULL,
EXPIRATION_DATE DATETIME NOT NULL,
PERIOD_DEBT_ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (PERIOD_DEBT_ID,SITE_ID,EXPIRATION_DATE)
);

I cant find the way for do this, i will glad for your help!

Options: ReplyQuote


Subject Views Written By Posted
How can i partition this table? 322 spalat palat 12/27/2016 02:27PM
Re: How can i partition this table? 187 Peter Brawley 12/27/2016 04:32PM
Re: How can i partition this table? 147 spalat palat 12/28/2016 06:37AM
Re: How can i partition this table? 142 Peter Brawley 12/28/2016 10:05AM
Re: How can i partition this table? 137 spalat palat 12/29/2016 06:52AM
Re: How can i partition this table? 96 Peter Brawley 01/10/2017 11:47AM


Sorry, only registered users may post in this forum.

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.