sql - Get number of constraints associated with a column -
i have been trying number of constraints associated column using sql command.
i know if there exists
column.number_of_constraints
how can information?
i'm working oracle
database.
the answer in regard oracle database. thanks
all_cons_columns
describes columns accessible current user , specified in constraints. https://docs.oracle.com/cd/b28359_01/server.111/b28320/statviews_1042.htm
you need query data dictionary see table columns , corresponding constraints. can try below query:
select * user_cons_columns table_name = '<your table name>';
Comments
Post a Comment