09-29-2008 8:16 PM
Hello Friends,
What is the difference between Key and Index of a table?
What is the difference between creating an index and specifying "Is Unique" to "Yes" vs creating a Unique Key and specifying "Is Unique" to "Yes"?
Thanks
Simmi
09-29-2008 8:44 PM
Hi Simmi,
key is nothing but primary key.it is unique .
Index is nothing but row number of a table and it is used to search the data fastly.
based on index we can retreive data fastly.
if you mentioned the key field in read statement it will fetch the exact record.
Unique is nothing but it wont allow duplicate entries inside the table.
Non-unique allows duplicate entries.
thanks,
surendra babu vemula
09-29-2008 8:49 PM