简体   繁体   English

在Oracle数据库中查询表/字段时,如何查看查询结果中的表模式? (使用SQuirreL SQL)

[英]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.

相关问题 使用连接查询(oracle sql)时如何查看一个表中的所有数据并在另一个表上过滤 - How to see all data from one table and filtered on another, when using a join query (oracle sql) 使用 SQL 查询数据库表 - Querying database tables using SQL 如何查询具有相同表架构的多个SQL表? - How to query multiple SQL tables with the same table schema? 编写SQL Server查询以查看一个表链接了多少个表 - Write sql server query to see how many tables are linked a table 如何针对从 INFORMATION_SCHEMA.TABLES 捕获表名的查询结果运行 SQL UPDATE? - How can I run a SQL UPDATE against the results of query that captures table names from INFORMATION_SCHEMA.TABLES? Oracle查询使用3个表,SQL - Oracle query using 3 tables, sql 对 Oracle 数据库中不同模式中的表执行更新查询时显示无效标识符 SQL 错误 - Invalid identifier SQL error displaying upon executing a update query for a tables in different schema in Oracle database SQL:使用 INFORMATION_SCHEMA.TABLES 时如何指定数据库名称和服务器名称? - SQL: When using INFORMATION_SCHEMA.TABLES How do I specify a database name and a server name? 使用Ebean查询原始SQL时如何映射结果 - How to map Results when Querying raw SQL using Ebean 查询数据库并将结果插入到Oracle SQL Developer中单独数据库中的表中 - Querying a database and insert resulting into a table in a seperate database in Oracle SQL Developer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM