哪张表或视图既可以查到constraint_name,又可以查到约束所在的字段?

[复制链接]
查看11 | 回复2 | 2007-10-20 08:38:44 | 显示全部楼层 |阅读模式
如题
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
select * from user_cons_columns where table_name='XXX';
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
select b.constraint_name, b.table_name, b.column_namefrom user_cons_columns b
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行