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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -