Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 09 Sep 2005 @ 09:55:25 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Urgent: Question on Teradata batch upsert
From:   Santosh Manicka


Using JDBC Type IV driver to connect to teradata i need to do a batch upsert.

I found that PreparedStatement does not support addBatch() for teradata. But I don't want to use Statement.addBatch().

I need to insert 1000's of records

Is there any other way of doing a batch operation?

If so, can I do a batch upsert like this:-

     Update emp_tbl set emp_sal = ?
     where emp_no = ?
     insert into emp_tbl (emp_no,emp_sal)
     values (?,?)

in a batch mode?

I have heard of FastLoad or MultiLoad for mass-insertion of data. But how do I use that from Java with the NCR JDBC driver?

Could someone send a reply as soon as possible?

Thank you.

Thanks and regards

Technical Analyst, Hallmark Cards.

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020