Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 03 Nov 2005 @ 19:20:21 GMT


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


Subj:   Question about inserting rows
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, November 03, 2005 14:13 -->

I wan to insert 100 rows in to a teradata table of same values.

Only the first column should change, ie slnumber:

     slnumber   FirstName   LastName   dept    loan     joindt
     01         FirstName   LastName   Major   10.00   2006-05-06
     02         FirstName   LastName   Major   10.00   2006-05-06

Is that any one have a query for this:

In oracle I can use this, but I need to write in teradata

     begin
     for i in 1..100 loop
     INSERT INTO STUDENT VALUES (i,'FirstName','LastName','Major' ,55000,'31-May-06');
     commit;
     end loop;
     end


     
  <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