使用sql,我试图显示在许多表上使用的约束的名称。
我尝试使用:
SELECT constraint_name, constraint_type FROM user_constraints;我不确定当桌子出现的时候我看到的是什么。
我知道如果我添加WHERE table_name = <table name>,我可以得到一个表的约束,但我想知道是否有多个表的语法?
发布于 2014-08-31 13:44:32
select
table_schema,
constraint_name,
table_name
from
information_schema.table_constraintshttps://stackoverflow.com/questions/25589236
复制相似问题