Results 1 to 8 of 8

Thread: Primary key & foreign key

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Re: Primary key & foreign key

    just to add here unique key can contain null value, while primary key can not contain null value.


  2. #2
    Junior Member
    Join Date
    Jun 2008
    Answers
    2

    Re: Primary key & foreign key

    primary key is combination of both unique and notnull keys.
    unique key is a key which is not accept any duplication.
    foriegn key is a key which is act as a primary key to some other table.


  3. #3

    Thumbs up Re: Primary key & foreign key

    Set of fields in database taken collectively to identify any row uniquely is called Candidate key...
    So Database has more than 1 Candidate key...

    Primary key is the Candidate key choosen by the Database Designer...

    Unique Key is the constraint that is used to insert unique value in the field of the database...


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