Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

INTERVAL PARTITION (YYYYMM) Number ?

user10586521May 16 2013 — edited May 23 2013
I have a table with the format
CREATE TABLE TABLE_NAME
(
YR_MO    NUMBER,
COL2      NUMBER, 
COL3      VARCHAR2(100)
PARTITION BY RANGE (YR_MO)
INTERVAL (1)
( PARTITION P0 VALUES LESS THAN (200310) )
)
The data in the YR_MO columns is stored in YYYYMM format.
It seems to be working great when the insert for 200310,200311
but for 200312 the high Value is 200313 , which is not a valid Year and Month , where as it should be 200401
becuase the next YYYYMM for 200312 will be 200401 .

column datatype cannot be modified to Date

How can I set the interval partition so that my high value always gets increased by 1 month .

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2013
Added on May 16 2013
6 comments
2,139 views