English

Write a short note on Primary key constraints.

Advertisements

Question

Write a short note on Primary key constraints.

Short/Brief Note
Advertisements

Solution

Primary Constraint:

  • Primly Constraint declares a field as a Primary key which helps to uniquely identify a recor<}ll
  • Primary Constraint is similar to a unique constraint except that only one field of a table can be set as the primary key.
  • The primary key does not allow NULL values and therefore a field declared as the primary key must have the NOT NULL constraint.
shaalaa.com
SQL Commands and Their Functions
  Is there an error in this question or solution?
Chapter 12: Structured Query Language (SQL) - Evaluation [Page 231]
Advertisements
Share
Notifications



      Forgot password?
Use app×