[英]When querying tables/fields in Oracle database, how to see table schema in query results? (using SQuirreL SQL)
At my workplace we have a database with multiple schemas, and some table names may be repeated in different schemas. 在我的工作场所,我们有一个包含多个模式的数据库,一些表名可能在不同的模式中重复。 There are thousands of tables so it is not time-effective to wade through the entire list. 有数千个表,因此浏览整个列表不合时宜。
If I do a query where I want to find all the tables containing the word CUSTOMER in their names, for example: 如果我进行查询,我想在其名称中找到包含单词CUSTOMER的所有表,例如:
select table_name from all_tables where table_name like '%CUSTOMER%' order by table_name
The results just look like this, with no clues of which schema the tables are located under. 结果就像这样,没有表格所在的架构的线索。
TB_NEW_CUSTOMER
TB_NEW_CUSTOMER
TB_NEW_CUSTOMER
TB_VIP_CUSTOMER
TB_VIP_CUSTOMER
TB_VIP_CUSTOMER
Is there a way to query Oracle so that I know under which schemas the tables are located? 有没有办法查询Oracle,以便我知道表所在的模式? We do not seem to have SQL+ because I got a 9000 error when trying the DESCRIBE command. 我们似乎没有SQL +,因为我在尝试DESCRIBE命令时遇到了9000错误。 I am tired of scrolling around the Objects tab in SQuirreL SQL! 我厌倦了在SQuirreL SQL中滚动对象选项卡!
Thank you very much. 非常感谢你。
Andy 安迪
你为什么不选择那些表的所有者?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.