|
|
Archives of the TeradataForum
Message Posted: Mon, 19 Jun 2006 @ 20:32:56 GMT
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.
| |