Unique index question [message #331191] |
Wed, 02 July 2008 09:36 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
Oracle recommends that unique indexes be created explicitly, using CREATE UNIQUE
INDEX. Creating unique indexes through a primary key or unique constraint is not
guaranteed to create a new index, and the index they create is not guaranteed to be a
unique index.
Its reffering to above given text in Oracle document .
When we create a constraint on a table(eg : Primay key) ,it automatically creates an index .now the question is ..
1)What is the purpose of explicitly creating an Index?
2)As mentioned in the statement above, why uniqueness is not guaranteed ?
|
|
|
|
Re: Unique index question [message #331221 is a reply to message #331191] |
Wed, 02 July 2008 11:31 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
Does it mean all primary key,unique key constraits SHOULD always have an associated index ?
If the index is not existing ,it will create an index on its own(eg name :SYS_C005420) .
If one is there already on that column ,it will just make use of that .
is it correct ?
|
|
|
|
Re: Unique index question [message #331223 is a reply to message #331191] |
Wed, 02 July 2008 11:39 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
I did couple of test and the concept is confusing me.
if everyone can test and learn everything what is the need for this forum .I see you are always arrogant to every forum users.
|
|
|
|
|