如何在数据库的多表中查找列,oracle数据库的查询是什么? [英] How to find that a column is used in multible tables of a database, what is the query for oracle database?

查看:131
本文介绍了如何在数据库的多表中查找列,oracle数据库的查询是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到列在数据库的多表中使用,oracle数据库的查询是什么?

我试图找出一个列,可能在许多表中使用。

How to find that a column is used in multible tables of a database, what is the query for oracle database?
I am trying to find out a column, which might be used in many tables.

推荐答案

试试这个 -

Try this-
select owner, table_name from all_tab_columns where column_name = 'ID';--replace with your column name



参考:

http://stackoverflow.com/a/1953311/1006297 [ ^ ]



希望,它有帮助:)


Reference:
http://stackoverflow.com/a/1953311/1006297[^]

Hope, it helps :)


这篇关于如何在数据库的多表中查找列,oracle数据库的查询是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆