0 THEN .QUIT" between each SQL. May be helpful. Thanks." />
 
Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 11 Nov 2008 @ 11:21:17 GMT


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


Subj:   Re: Issue while creating and inserting in teradata tables through java
 
From:   Sapra, Kapil Dev

Hi,

I think here your code is submitting "Multi Statement Transaction" and that's the reason TERADATA is throwing this error.

SQL-1 : SQL will throw error mentioned below.

     CREATE SET TABLE temp_ml(
          col1   char(4)
     )
     PRIMARY INDEX XPKtemp_ml (col1); sel * from temp_ml;

SQL-2 : SQL will work fine (in two different statement)

     CREATE SET TABLE temp_ml(
          col1   char(4)
     )
     PRIMARY INDEX XPKtemp_ml (col1);
     sel * from temp_ml;

You need to split the sql from Multi Statement Transaction to Single Statement. Just try to use ".IF ERRORCODE > 0 THEN .QUIT" between each SQL. May be helpful. Thanks.


Best Regards,

Kapil Dev Sapra



     
  <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