Oracle
1Z0-047 · Question #226
View the Exhibit and examine the structure of the EMP table. You executed the following command to add a primary key to the EMP table: ALTER TABLE emp ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id)…
The correct answer is B. The PRIMARY KEY is created and it would use an existing unique index. See the full explanation below for the reasoning.
Question
View the Exhibit and examine the structure of the EMP table. You executed the following command to add a primary key to the EMP table:
ALTER TABLE emp ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id) USING INDEX emp_id_idx; Which statement is true regarding the effect of the command?
Options
- AThe PRIMARY KEY is created along with a new index.
- BThe PRIMARY KEY is created and it would use an existing unique index.
- CThe PRIMARY KEY would be created in a disabled state because it is using an existing index.
- DThe statement produces an error because the USING clause is permitted only in the CREATE TABLE
How the community answered
(45 responses)- A2% (1)
- B84% (38)
- C4% (2)
- D9% (4)
Community Discussion
No community discussion yet for this question.