Re: Partitioning and PK
Erhan,
I think the limitation you're running into is that the primary or unique key must contain any columns used in the partition expression. Hence this is illegal:
CREATE TABLE t1 (id int, d date, PRIMARY KEY (id)) PARTITION BY RANGE(YEAR(d));
But this makes it legal:
CREATE TABLE t1 (id int, d date, PRIMARY KEY (id, d)) PARTITION BY RANGE(YEAR(d));
Subject
Views
Written By
Posted
3789
July 11, 2008 02:54PM
2450
August 02, 2008 10:14AM
Re: Partitioning and PK
2355
October 08, 2008 09:00AM
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.