QuestionQ178

VerifiedManipulating Data

You need to alter the STUDENTS table to add a primary key to the STUDENT_ID column. The table is currently empty.

Which statement performs this task?

Explanation

A table-level primary key is added with ALTER TABLE ... ADD CONSTRAINT constraint_name PRIMARY KEY (column_name). The primary-key column list must be enclosed in parentheses, and the constraint is assigned a name.

Community Discussion

No comments yet. Be the first to start the discussion!