हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Differentiate Unique and Primary Key constraint. - Computer Science

Advertisements
Advertisements

प्रश्न

Differentiate Unique and Primary Key constraint.

अंतर स्पष्ट करें

उत्तर

Unique Key Constraint Primary Key Constraint
The constraint ensures that no two rows have the same value in the specified columns. This constraint declares a field as a Primary Key which helps to uniquely identify a record.
The UNIQUE constraint can be applied only to fields that have also been declared as NOT NULL. The Primary Key does not allow NULL values and therefore a field declared as Primary Key must have the NOT NULL constraint.
shaalaa.com
SQL Commands and Their Functions
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 12: Structured Query Language (SQL) - Evaluation [पृष्ठ २३०]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 12 Structured Query Language (SQL)
Evaluation | Q 2. | पृष्ठ २३०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×