Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 12 Mar 2007 @ 19:02:41 GMT


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


Subj:   Re: Incrementing field with an INSERT
 
From:   GrossD

     CREATE SET TABLE ${tableName}
          ,NO FALLBACK
          ,NO BEFORE JOURNAL
          ,NO AFTER JOURNAL
          ,CHECKSUM = DEFAULT
          (
           seqid INTEGER GENERATED ALWAYS AS IDENTITY
                     (START WITH 1
                      INCREMENT BY 1
                      MINVALUE -2147483647
                      MAXVALUE 2147483647
                      NO CYCLE)
           ...

Insert leaving seqid out of field list.

Rows will not always be consecutively numbered.


Don Gross



     
  <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