|
Archives of the TeradataForumMessage Posted: Tue, 18 May 2004 @ 11:06:18 GMT
Hi, This can be done using 'Alter Table': ALTER TABLE For Example: CREATE TABLE TAB1( COL1 INT, COL2 INT, COL3 INT) PRIMARY INDEX(COL1) PARTITION BY CASE_N( (COL1 = 100) AND (COL2 = 1), (COL1 = 100) AND (COL2 = 2), (COL1 = 100) AND (COL2 = 3), NO CASE, UNKNOWN); *** Table has been created. *** Total elapsed time was 1 second. Altering the table to add more partitions: ALTER TABLE TAB1 MODIFY PRIMARY INDEX PARTITION BY CASE_N( (COL1 = 100) AND (COL2 = 1), (COL1 = 100) AND (COL2 = 2), (COL1 = 100) AND (COL2 = 3), (COL1 = 200) AND (COL2 = 1), (COL1 = 200) AND (COL2 = 2), (COL1 = 200) AND (COL2 = 3), NO CASE, UNKNOWN); *** Table has been modified. *** Total elapsed time was 1 second. SHOW TABLE TAB1; *** Text of DDL statement returned. *** Total elapsed time was 1 second. ------------------------------------------ CREATE SET TABLE TEST.T1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT ( COL1 INTEGER, COL2 INTEGER, COL3 INTEGER) PRIMARY INDEX ( COL1 ) PARTITION BY CASE_N( (COL1 = 100 ) AND (COL2 = 1 ), (COL1 = 100 ) AND (COL2 = 2 ), (COL1 = 100 ) AND (COL2 = 3 ), (COL1 = 200 ) AND (COL2 = 1 ), (COL1 = 200 ) AND (COL2 = 2 ), (COL1 = 200 ) AND (COL2 = 3 ), NO CASE, UNKNOWN); Thanks, Vimala.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||