Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Tue, 22 Mar 2016 @ 15:17:27 GMT


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


Subj:   Sytanx Error on ALTER TABLE Statement to ADD
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, March 22, 2016 08:49 -->

What is missing in the following statement taken from "Temporal Table Support" documentation (Release 15.0)?

     ALTER TABLE Policy
     ADD PERIOD FOR Policy_Duration(Policy_Begin,Policy_End) AS VALIDTIME;

After execution, the following error message was returned:

ALTER TABLE Failed. 3706: Syntax error: expected something between the word 'PERIOD' and the 'FOR' keyword.

Below is the original table definition:

     CREATE MULTISET TABLE Policy(
         Policy_ID INT,
         Customer_ID INT,
         Policy_Type CHAR(2) NOT NULL,
         Policy_Details CHAR(40),
         Policy_Begin DATE NOT NULL,
         Policy_End DATE NOT NULL
     ) PRIMARY INDEX (Policy_ID);

Thank you in advance for any responses.



     
  <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: 24 Jul 2020