SELECT ALL_CONS_COLUMNS.TABLE_NAME, ALL_CONS_COLUMNS.CONSTRAINT_NAME, ALL_CONS_COLUMNS.OWNER
FROM SYSCONS, SYSOBJECTS, ALL_CONS_COLUMNS
WHERE SYSCONS.id=SYSOBJECTS.id
--'F'代表外键,'P'代表主键,'U'唯一索引
AND SYSCONS.TYPE$='F'
AND SYSOBJECTS.name=ALL_CONS_COLUMNS.CONSTRAINT_NAME
-- 下面的用户名改成你的用户名,不加的话系统表中的约束也会查出来
AND ALL_CONS_COLUMNS.OWNER='用户名';