---
title: "ORACLE主从表查找"
author: "Edision"
date: "2014-01-10T11:05:38Z"
tags: []
categories: ["Web前端"]
slug: "oracle"
draft: false
lastmod: "2014-01-10T11:05:38Z"
id: 1711163
url: "https://edision.iteye.com/blog/1711163"
---

**select u1.CONSTRAINT\_NAME, u1.TABLE\_NAME as table\_, u2.TABLE\_NAME as reference\_**  
**from user\_constraints u1, user\_constraints u2**  
**where u1.constraint\_type='R' and u1.R\_CONSTRAINT\_NAME = u2.CONSTRAINT\_NAME and u2.table\_name='BASEF\_SCHOOL\_INFOR'**