Which view should a user query to display the columns associated with the constraints on a table owned by the user?
-
USER_CONSTRAINTS
-
USER_OBJECTS
-
ALL_CONSTRAINTS
-
USER_CONS_COLUMNS
-
USER_COLUMNS
D
Correct answer
Explanation
USER_CONS_COLUMNS displays the columns that participate in constraints defined on tables owned by the current user. USER_CONSTRAINTS shows constraint definitions but not column details. USER_OBJECTS lists all objects owned by the user. ALL_CONSTRAINTS includes constraints on accessible objects owned by others. USER_COLUMNS shows all table columns, not specifically constraint-related ones.