Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 09 Dec 2009 @ 16:22:59 GMT


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


Subj:   Populate columns with row number
 
From:   GRAHAM, Paul

Hi

I am trying to populate a column with row numbers. The oracle syntax we used was:

     UPDATE database.table
     SET row_num = ROWNUM

I think the syntax we need for Teradata is something like:

     UPDATE database.table
     SET row_num = ROW_NUMBER()

I've tried variations on this syntax and searched web to no avail.

Any help would be gratefully received


Regards

Paul Graham



     
  <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