Archives of the TeradataForum
Message Posted: Tue, 22 Mar 2016 @ 15:17:27 GMT
<-- 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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|