QuestionQ201Verified/Creating Other Schema ObjectsCopy linkReport a problemAsk AstroTutorSave questionA UNIQUE constraint on a column needs an index. Which of the following scenarios is correct?Choose twoAIf a UNIQUE index already exists on the column, it will be used.BIf a NONUNIQUE index already exists it will be used.CIf a NONUNIQUE index already exists on the column, a UNIQUE index will be created implicitly.DIf any index exists on the column, there will be an error as Oracle attempts to create another index implicitly.Show AnswerAnswerExplanationOracle Database reuses a suitable existing index to enforce a UNIQUE constraint. The reused index can be either a UNIQUE index or a NONUNIQUE index, so no additional implicit UNIQUE index is required in either case.Learn moreOracle Database 26ai Advanced Application Developer's Guide — Creating Indexes for Use with ConstraintsOracle Database 26ai SQL Language Reference — constraintShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion