【问题标题】:Get list of table names in different schema of an Oracle database [duplicate]获取Oracle数据库不同模式中的表名列表[重复]
【发布时间】:2012-01-17 09:41:07
【问题描述】:

可能重复:
Oracle: get list of all tables?
How do I list all tables in a schema in Oracle SQL?

我想列出另一个模式中的所有表。

connect hr/hr; 
select table_name from user_tables;

但我想跳过“连接”命令。我想从另一个模式运行查询。 那有可能吗?

【问题讨论】:

标签: sql oracle


【解决方案1】:
SELECT TABLE_NAME 
FROM ALL_TABLES 
WHERE OWNER='OTHER-SCHEMA'

【讨论】:

    猜你喜欢
    • 2018-02-25
    • 1970-01-01
    • 2017-07-22
    • 2019-08-29
    • 2020-02-17
    • 2021-12-30
    • 1970-01-01
    • 1970-01-01
    • 2014-03-20
    相关资源
    最近更新 更多