Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 16 Mar 2004 @ 17:19:21 GMT


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


Subj:   Re: Mload Trim spaces before loading
 
From:   Dieter Noeth

Michael Larkins wrote:

  What you are seeking is automatically provided when the column in the table is defined as VARCHAR.  



Nope.

If you insert trailing blanks into a VarChar column, the blanks are *not* removed. Just try it.

You have to remove blanks explictly:

DROP TRAILING BLANKS within .FIELD -> CPU usage on the load node, probably less bytes over the network/smaller worktable

TRIM(TRAILING FROM :Inputcol) within INSERT -> CPU usage on the TD server, probably more bytes over the network/larger worktable


Dieter



     
  <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: 27 Dec 2016