Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 10 Feb 2005 @ 21:02:20 GMT


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


Subj:   Re: Help with bteq script to load a table
 
From:   Muthusamy, Sudha

Hi

here is a sample script to import a CSV file

Modify your script accordingly


Hope this helps

Sudha


     .run file=.tdlogon
     .import vartext ',' file='temp.csv' ;
     .quiet on

     .repeat*
     using
     ( f1  varchar(5),
       f2 varchar(5)
     )

     insert into ud1.temptbl
     (  f1
     ,  f2 )

     values
     ( cast(:f1 as integer )
     , cast(:f2 as integer ) )
     ;
     .quit


     
  <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