Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 19 Jun 2006 @ 20:32:56 GMT


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


Subj:   BTEQ SQL error: Failure 3706 Syntax error
 
From:   Pinti, Michele

We were able to run the following update statement in Queryman and the update was successful.

When we put the statement in a BTEQ script we get the error shown below.

We have tried to reformat the statement a couple ways of was but no luck. Any ideas how to get this to run?

     UPDATE proddb.PeopleSoft_Voucher_Xref
     SET payment_reconcile_ts = cast((substring(CAST(Payment_Reconcile_Ts AS
     CHAR(19)) , 1, 11)  || '00:00:00'  ) as timestamp (0))
     where SUBSTRING(CAST(Payment_Reconcile_Ts AS CHAR(19)),12, 2) = '00'
     AND SUBSTRING(CAST(Payment_Reconcile_Ts AS CHAR(19)),18, 2) = '00';

     SET payment_reconcile_ts = cast((substring(CAST(Payment_Reconcile_Ts AS
     CHAR(19)) , 1, 11)  || '00:00:00'  ) as timestamp (0))

     $
      *** Failure 3706 Syntax error: expected something between ')' and ','.
                     Statement# 1, Info =123

Michele Pinti
Standard Register Co.



     
  <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