MySQL Forums
Forum List  »  Partitioning

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?
2898
December 27, 2016 02:27PM
1458
December 27, 2016 04:32PM
1394
December 28, 2016 06:37AM
1267
December 28, 2016 10:05AM
1526
December 29, 2016 06:52AM
1302
January 10, 2017 11:47AM


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.