Oracle
1Z0-047 · Question #131
Evaluate the CREATE TABLE statement: CREATE TABLE products (product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY, product_name VARCHAR2(15)); Which statement is true regarding the PROD_ID_PK…
The correct answer is B. It would be created and would use an automatically created unique index. See the full explanation below for the reasoning.
Question
Evaluate the CREATE TABLE statement:
CREATE TABLE products (product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY, product_name VARCHAR2(15)); Which statement is true regarding the PROD_ID_PK constraint?
Options
- AIt would be created only if a unique index is manually created first.
- BIt would be created and would use an automatically created unique index.
- CIt would be created and would use an automatically created no unique index.
- DIt would be created and remains in a disabled state because no index is specified in the command.
How the community answered
(29 responses)- A7% (2)
- B79% (23)
- C3% (1)
- D10% (3)
Community Discussion
No community discussion yet for this question.