Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select TC.TABLE_NAME,TC.Constraint_Name, CC.Column_Name from information_schema.table_constraints TC
- inner join information_schema.constraint_column_usage CC on TC.Constraint_Name = CC.Constraint_Name
- where TC.constraint_type = 'Unique'
- order by TC.Constraint_Name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement