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?
3337
December 27, 2016 02:27PM
1734
December 27, 2016 04:32PM
1632
December 28, 2016 06:37AM
1510
December 28, 2016 10:05AM
1785
December 29, 2016 06:52AM
1557
January 10, 2017 11:47AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.