Clustered Index will physically sort the data.
If you want uniqueness of data with Clustered Index then you should create Clustered Index with unique option explicitly.
Otherwise it will accept duplicate records and sort then in order.
Other option to follow the normalization standard i.e., use of primary key (which in turn doest allow duplicate records)
I hope its clear to you.
P.G.Vinod
Sybase DBA
Quote:
Originally posted by jessicab
sybase 11.9.2
i have a table with a clustered index that nevertheless has allowed in a duplicate.
how on earth can this happen?
I've tested all of the combos i can think of on my v 12 server to try and recreate, but sybase blocks me from inserting (or updating) to a duplicate that violates the key no matter what order the index / data creation occurs.
any ideas??? thanks in advance.
jess.
|