Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 15 Mar 2006 @ 16:29:26 GMT


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


Subj:   Re: Primary index change on large volume of table
 
From:   Victor Sokovin

  so how difficult it is to changes and what are the steps i have to take please post me detials .  


It is not very difficult.

The steps are:

1. Create the table with the new PI definition (see 3);

2. Move the data by using, say, INSERT INTO <new_table> ... SELECT FROM <old_table>;

3 (optional). If the original table had dependent objects such as SI or JI, you might be better off building them on the new table after you have moved the data. If you have triggers you might consider disabling them because their logic might not suit such a table migration.

4. Drop the old table.

5. Rename the new table to the original name.


Regards,

Victor



     
  <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