English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is the advantage of declaring a column as “INTEGER PRIMARY KEY” - Computer Science

Advertisements
Advertisements

Question

What is the advantage of declaring a column as “INTEGER PRIMARY KEY”

Short Note

Solution

If a column of a table is declared to be an INTEGER PRIMARY KEY, then whenever a NULL will be used as an input for this column, the NULL will be automatically converted into an integer which will one larger than the highest value so far used in that column. If the table is empty, the value 1 will be used.

shaalaa.com
Querying a Date Column
  Is there an error in this question or solution?
Chapter 15: Data manipulation through SQL - Evaluation [Page 318]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 15 Data manipulation through SQL
Evaluation | Q 3. | Page 318
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×