Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 20 Apr 2004 @ 18:00:08 GMT


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


Subj:   Retrieving the generated identity value
 
From:   Jonathan White

In Teradata how does one go about retrieving the generated identity value after a row is inserted?

As an example suppose I have the following table:

CREATE TABLE test01 (a1 INTEGER GENERATED BY DEFAULT AS IDENTITY, a2 INTEGER);


After executing the following statement:

INSERT INTO test01(a2) VALUES(1)


How would I retrieve the value that has been assigned to a1?


Thank you.

Jonathan White
Applied Predictive Technologies



     
  <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