Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 20 Jun 2007 @ 19:54:02 GMT


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


Subj:   Re: Mload script to copy data from 1 table to another table in Teradata
 
From:   Michael Larkins

The problem with this is:

  Try with the following syntax.  


          > Create databasename.table
          >    (as sel * from databasename.table name)
          >    with data;

You will most likely create a set table with a NUPI on the first column. If there are a lot of hash collisons it will slow down the copy process looking for duplicate rows.

As Fred mentioned, you should at least use a PI definition, but probably better to use the original table to get the same PI and any/all SI definitions as well as any constraints that might exist on the original table.


Just an added thought,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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