Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 03 Apr 2010 @ 20:46:51 GMT


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


Subj:   05565 Error: Update in the update statement is a Complex Update
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, April 01, 2010 09:58 -->

     CREATE MULTISET TABLE LKP_VALUES, NO FALLBACK,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL,
          CHECKSUM = DEFAULT
          (
           ELEM_ID INTEGER NOT NULL,
           ELEM_NM VARCHAR(50) CHARACTER SET LATIN CASESPECIFIC,
           VALUE1 VARCHAR(2000) CHARACTER SET LATIN CASESPECIFIC,
           VALID_IND SMALLINT,
           LOAD_TS TIMESTAMP(0) NOT NULL)
     PRIMARY INDEX ( ELEM_ID );

     UPDATE LKP_VALUES SET  VALID_IND=1 WHERE VALUE1 ='ABC' AND
     LOAD_TS='2010-03-31 07:42:22'
     ELSE
     INSERT INTO LKP_VALUES   (9,'DTRCOMMENT','ABC',1,'2010-03-31 07:42:22');

     5565 Error: The update specified in the update statement is a Complex Update.

The update fails for Complex update!! Help me guys!

There are no secondary indexes defined on the table.



     
  <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: 27 Dec 2016