The Teradata alter table statement does not allow the identity column attribute to be specified or changed, either for an existing column or an added column. Identity columns can be defined only in the create table statement.
CREATE NEW_TABLE (IDENTIY COLUMN, REST OF COLUMNS) PRIMARY INDEX (...);
INSERT INTO NEW_TABLE (COLUMN NAMES NOT INCLUDING ID COL)
SELECT COL1, COL2 COL3....;
here is my create table query :
create table test(
testid int check(testid < 100 and testid > 1000),
testname varchar(100) uppercase
);
this query is working fine but i want to modify the test id col for auto generation.
for this i wrote the modify query as :
alter table test modify testid int generated always as identity ( start with 1 cycle );
this query not working fine
can any one give me a solution for this plaese
Thank you
Ashok Reddy Daggula