Quote:
Originally Posted by DB2_henke
Hello
Thanks for your answer. I just want to make sure.
In my example, if we partition our table today from 2007-01 to 2011-12 and the database today only contains values equal to or less than 2011-03, you say that there is nothing "to do" for 2011-04. But surely when we arrive in 2011-04 and data gets inserted in month 2011-04, this will work right?
I mean a unique partition with the values of 2011-04 will be filled?
|
As you said you have already created partitions till 2011-12. So data for 2011-04 will be stored in the defined partition.
...
STARTING('2011-01-01') INCLUSIVE ENDING('2011-01-31') INCLUSIVE in TS2011-01
STARTING('2011-02-01') INCLUSIVE ENDING('2011-02-28') INCLUSIVE in TS2011-02
STARTING('2011-03-01') INCLUSIVE ENDING('2011-03-31') INCLUSIVE in TS2011-03
STARTING('2011-04-01') INCLUSIVE ENDING('2011-04-30') INCLUSIVE in TS2011-04
STARTING('2011-05-01') INCLUSIVE ENDING('2011-05-31') INCLUSIVE in TS2011-05
...
But you'll get an Error for 2012-01-01 if the last Entry is not specified with MAXVALUE.