Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 24 Jan 2009 @ 20:16:14 GMT


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


Subj:   Re: Changing Partition definition
 
From:   Dieter Noeth

Ronald Montemayor wrote:

  I tried some "alter table partition add " SQL, but unable to.  


If you read the manuals you'll see that the syntax for changing partitioning in Teradata is different.


  The New partition should look like this:  


          > PARTITION BY RANGE_N(ywkno  BETWEEN
          >
          > 200801  AND 200852  EACH 1,
          > 200901 AND 201052 EACH1 );
  Current table definition is this:  


          > CREATE MULTISET TABLE X
          >      (
          >       a CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,
          >       ywkno INTEGER NOT NULL)
          > PRIMARY INDEX ( a )
          > PARTITION BY RANGE_N(ywkno  BETWEEN
          > 200801  AND 200852  EACH 1 );

     alter table x modify primary index
     add range between 200901 and 201052 each 1

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