Teradata : Alter table to change primary index to unique primary index
If the table already has a primary index and if it needs to be changed to UPI, for the same column combination,
- First add a USI on the NUPI columns, then execute the below alter command
ALTER TABLE xxx MODIFY UNIQUE PRIMARY INDEX (NUPI_cols)
This will also drop the USI automatically
Read great educational content like this and a lot more !
Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too