Hi folks,
I have a table already created on which I want to add a partition by range on a date column. I checked for for the syntax on the Net and most of them:
1. Either explain the syntax for partitions specified while creating the table: (e.g.,
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/partiti.htm)
2. Or specify it without the column-name while partitioning (e.g.,
http://www.databasedesign-resource.com/oracle-partitions.html) - does that assume by default that partitioning will be done on the primary key?
I know I might not have looked enough but am just looking for a sample Alter table command which adds a partition by range on a column which is not the primary key. Maybe something like the correct syntax for:
ALTER TABLE MY_TABLE ADD PARTITION BY RANGE (DATE_CREATED) DATA_98 VALUES LESS THAN (TO_DATE ('01/01/1999', 'DD/MM/YYYY'))
Thanks,
Mayank.
Start Free Trial