Exams
Subjects
Classes
Home
Exams
Computer Science
SQL
before the usage of table...
Question:
medium
Before the usage of .................. table command to add a primary key, one needs to make sure that the field is ...........
Show Hint
Ensure that the column you intend to use as a primary key does not allow NULL values before adding the primary key constraint.
CUET (UG) - 2023
CUET (UG)
Updated On:
Feb 13, 2026
ALTER, NOT NULL
Create, NOT NULL
Update, NOT NULL
Update, NULL
Show Solution
The Correct Option is
A
Solution and Explanation
To add a primary key to a table, the column used for the key must have unique values, and it must not allow NULL values. The ALTER command is used to modify a table, so the correct answer is ALTER with the constraint NOT NULL.
Download Solution in PDF
Was this answer helpful?
0
Top Questions on SQL
Describe about any two DML commands of SQL.
Kerala Plus Two(Class 12) - 2026
Computer Science
SQL
View Solution
Briefly explain about any two column constraints used in SQL.
Kerala Plus Two(Class 12) - 2026
Computer Science
SQL
View Solution
Given the table facts:
\[ \text{facts (D1, D2, val)} \] with the following data:
Consider the following SQL query:
What is the total number of rows produced?
GATE DA - 2025
Data Science and Artificial Intelligence
SQL
View Solution
On a relation named Loan of a bank:
GATE DA - 2025
Data Science and Artificial Intelligence
SQL
View Solution
Want to practice more? Try solving extra ecology questions today
View All Questions
Questions Asked in CUET (UG) exam
Find the ratio of de-Broglie wavelengths of deuteron having energy E and \(\alpha\)-particle having energy 2E :
CUET (UG) - 2026
Dual nature of radiation and matter
View Solution
What is the IUPAC name of [Pt(NH\(_3\))\(_2\)Cl\(_2\)]?
CUET (UG) - 2025
Coordination chemistry
View Solution
A and B together can complete a task in 10 days. A alone can finish it in 15 days. In how many days can B alone finish the work?
CUET (UG) - 2025
Time and Work
View Solution
The atomic number of Lanthanum is 57. Its electronic configuration will be ......
CUET (UG) - 2025
General Chemistry
View Solution
Choose the word that best fits the blank in the sentence below: "Despite his remarks, the audience found his ideas intriguing and thought-provoking."
CUET (UG) - 2025
Vocabulary
View Solution