There are two types of indexes in Teradata, namely Primary Index and Secondary index. primary index should be created while creating table, whereas secondary index can be created after table has been created.
Secondary index create syntax:
non-unique(NUSI):
Create Index indexname(col1,col2,...) on databasename.tablename;
unique(USI):
Create Unique Index indexname(col1,col2,...) on databasename.tablename;
No comments:
Post a Comment