"Jerry" <je*********@hotmail.com> wrote in message
news:8c**************************@posting.google.c om...
Is that true that one table can only have one clustered index? The
column with clustered index will be sorted physically, is that true?
The column with non-clustere index will not be sorted physically, is
that true?
Also, is primary key clustered index by default?
Thanks!
A very common point of confusion.
All indexes are sorted in the exact order of the index. By designating a
clustering index, you are specifying the order of the rows in the associated
table (the order of which DB2 tries to maintain during an insert and after a
reorg of the table). So by that definition, there can only be one clustering
index per table.
In DB2 for LUW, there is no clustering index by default. In DB2 for z/OS,
the first index defined is the clustering index unless another index is
explicitly defined as the clustering index.