Home Page for the TeradataForum

Archives of the TeradataForum

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

  <Prev Next>  
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

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

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020