Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 18 May 2004 @ 11:48:03 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Alter Table add partition's
 
From:   Dieter Noeth

Nice try, but this is only allowed as long as the table is empty:

     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.

     insert into TAB1 default values;

      *** Insert completed. One row added.
      *** Total elapsed time was 1 second.

     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);

     ALTER TABLE TAB1 MODIFY PRIMARY INDEX
$$$$$
      *** Failure 3732 The facility of altering the partitioning of a
          non-empty table in this case has not been implemented yet.

Only RANGE_N partitions may be expanded.


Dieter



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023