Alter Table Add Unique Index. Expand the Tables folder. You alter table will create the index in that specified tablespace with your storage options.
This is the table that you wish to add a unique constraint to. Table_name The name of the table to modify. If you neither specify an existing index nor create a new index then Oracle creates the index.
If table is partitioned then you can specify a locally or globally partitioned.
We can also add Unique key after table creationLets see the example of that. Redshift Unique Key Constraint Syntax. Table_name The name of the table to modify. The value of the column c2 or c3 needs not to be unique.