|
Archives of the TeradataForumMessage Posted: Thu, 07 Jan 2010 @ 11:33:10 GMT
Hi, How can I add a partition to a table already partitioned (without dropping it) ? This is the table already partitioned : CREATE MULTISET TABLE bdd_blanqueo.BL_HIS_SALDOS ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( fec_vigencia DATE FORMAT 'YYYY-MM-DD', cod_persona INTEGER, sdo_final DECIMAL(15,2)) PRIMARY INDEX ( cod_persona ) PARTITION BY RANGE_N(fec_vigencia BETWEEN DATE '2007-12-31' AND DATE '2010-01-01' EACH INTERVAL '1' DAY ); Note that the interval ends in 2010-01-01 And, what I need to get : CREATE MULTISET TABLE bdd_blanqueo.BL_HIS_SALDOS ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( fec_vigencia DATE FORMAT 'YYYY-MM-DD', cod_persona INTEGER, sdo_final DECIMAL(15,2)) PRIMARY INDEX ( cod_persona ) PARTITION BY RANGE_N(fec_vigencia BETWEEN DATE '2007-12-31' AND DATE '2020-01-01' EACH INTERVAL '1' DAY ); The end of the interval in 2020. Any way without recreating it? Thanks!!
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||