Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 05 Sep 2002 @ 21:12:25 GMT


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


Subj:   Increment
 
From:   Ferry, Craig

Does anyone know the best way to create an incrementing number to be part of a primary key during an insert into a table.

I want to do something like the following:

INSERT INTO new_table
SELECT 'S||20020906||incrementing_number', other_fielda, other_fieldb
FROM existing_table


Thanks

Craig



     
  <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: 27 Dec 2016