Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Range partitions - 2 levels deep
I need a table to be partitioned
1. First by range on a number field.
2. By date range.
Anyone attempted this before. I was trying to use "List" for sub-partition. But it doesn't seem to like use of functions anywhere.
This is what i am trying:
CREATE TABLE raj1
(salesman_id NUMBER(5),
sales_date DATE)
PARTITION BY LIST(to_char(sales_date,'MONYYYY'))
( PARTITION sales_jan03 VALUES('JAN2003'),
PARTITION sales_feb03 VALUES ('FEB2003'),
PARTITION sales_other VALUES(DEFAULT) );
Has anyone tried this?
Rajesh Received on Fri Nov 07 2003 - 10:34:02 CST