MySQL Forums
Forum List  »  Partitioning

Re: error 1503: A primary key must include all columns in the table
Posted by: Rick James
Date: November 29, 2013 01:15AM

Sounds like a typo in the error message.
All UNIQUE (or PRIMARY) keys must include the fields of the PARTITION key, so change the PK to
PRIMARY KEY (`id`, eventDate),

Possible mistake:
PARTITION p03 VALUES LESS THAN (TO_DAYS(’2013-09-30′)),
Do you want the last day of September to be put in the partition with October?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: error 1503: A primary key must include all columns in the table
4932
November 29, 2013 01:15AM


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.