Results 1 to 2 of 2

Thread: what is the difference between Primary Key and Index Key ?

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    1

    what is the difference between Primary Key and Index Key ?

    Hello Frens....

    Can anyone tell me the difference between primary key and index key ?
    when shud we use primary key and when shud we use index key

    Thanx in advance

    Regards,
    Satish...


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: what is the difference between Primary Key and Index Key ?

    Primary key is the field which is used to enforce both uniqueness and not-null to the specified . In a table there can be maximum only one primary key. Eventhough you have the option of creating composit primary key which can be based on a maximum 32 fields as per 10.2.0.1.0 version.
    Index is the logical mapping of data in the column like index of a large book which helps us to directly jump in the required location for data manipulations.
    Primary key it self works as an index.

    Primary key and indexes are automatically used by the system when the field is part of the query. Sometimes we can pass hint to optimizer, to specify to use a particular index .


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact