Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 26 Jun 2014 @ 15:41:00 GMT


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


Subj:   Re: How to modify DDL when UPI is on IDENTITY COLUMN & RI imposed
 
From:   Fischer, Erich

You can follow this procedure:

1) Create new table with same structure as existing, but:
Make the table multiset
Make the identity column "GENERATED BY DEFAULT"

2) Insert data into new table - include the identity column value from original.
BY DEFAULT will accept the keys for rows you already have, and will
generate new ID's for new rows.


Erich Fischer
BI Sr. Consultant



     
  <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