Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sequence 1

Status
Not open for further replies.

DFW1999

Programmer
Nov 11, 2002
31
US
Can somebody tell me how to insert a sequence in teradata table.
I tried to use csum() for this insert. It did not work.
CSUM() I can use when selecting data from an other table. But in this case I am inserting new rows in a table and want to add a unique seq no each time a row inserts into this table.

thanks

 
Use V2R5, there's a sequence now ;-)

Can you supply more info how you're trying to insert ?

Is it a batch load (fastload/multiload)?
- Write an Inmod, this is the only way to have a sequence# according to the order of records in your input file
- Load into a stage table, then insert/select using CSUM

Or do you insert using SQL?
Insert/select?
- CSUM

Single row inserts?
- There is no scalable solution, insert will always run serially

Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top