Archives of the TeradataForum
Message Posted: Thu, 03 Nov 2005 @ 19:20:21 GMT
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
|